could not greet: rpc error: code = Unimplemented desc = exit status 1 - grpc-go

I was just starting out in grpc and I was just following the quick start guide of grpc in Golang. So I just started the greeter_server main.go file and it works fine but when I run greeter_client main.go file then I get an error
could not greet: rpc error: code = Unimplemented desc = exit status 1
I am using Windows 11 OS.

"This means that whatever operation you are trying to do is not supported or enabled on the gRPC Service you are calling into. See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md."

Related

Azure pipeline getting error: [error]The read operation failed, see inner exception on mac hosted agent

im getting this error, which i try to find why and what happened Suddenly:
and more importantly how to debug such an error .
what this line means :
Error The read operation failed, see inner exception.
where is this : inner exception?
020-09-30T18:47:22.0199830Z ##[section]Starting: Initialize job
2020-09-30T18:47:22.0201330Z Agent name: 'Hosted Agent'
2020-09-30T18:47:22.0201750Z Agent machine name: 'Mac-1601490664598'
2020-09-30T18:47:22.0202040Z Current agent version: '2.175.2'
2020-09-30T18:47:22.0219900Z Current image version: '20200904.1'
2020-09-30T18:47:22.0229850Z Agent running as: 'runner'
2020-09-30T18:47:22.0293150Z Prepare build directory.
2020-09-30T18:47:22.0595770Z Set build variables.
2020-09-30T18:47:22.0631220Z Download all required tasks.
2020-09-30T18:47:22.0751440Z Downloading task: CmdLine (2.164.2)
2020-09-30T18:48:02.2372880Z Downloading task: UseRubyVersion (0.165.2)
2020-09-30T18:48:48.2651220Z Downloading task: DownloadBuildArtifacts (0.167.2)
2020-09-30T18:51:03.2405560Z ##[warning]Failed to download task 'DownloadBuildArtifacts'. Error The read operation failed, see inner exception.
2020-09-30T18:51:03.2423990Z ##[warning]Inner Exception: {ex.InnerException.Message}
2020-09-30T18:51:03.2428450Z ##[warning]Back off 23.799 seconds before retry.
2020-09-30T18:53:07.4698560Z ##[warning]Failed to download task 'DownloadBuildArtifacts'. Error The read operation failed, see inner exception.
2020-09-30T18:53:07.4701220Z ##[warning]Inner Exception: {ex.InnerException.Message}
2020-09-30T18:53:07.4704340Z ##[warning]Back off 13.329 seconds before retry.
2020-09-30T18:57:08.7191850Z ##[error]The read operation failed, see inner exception.
2020-09-30T18:57:08.7198800Z ##[section]Finishing: Initialize job
You are not the only one who encountered this interruption, see this post.
I reviewed our internal service telemetry log, the issue you encountered should caused by our service event. https://status.dev.azure.com/_history
There were some exception occurred on our backend start from 15:23:27 CST, which make you encountered pipeline interruption.
how to debug such an error
As normal, it's hard for users to check the inner exception if you are using hosted pool. The detailed exception messages are recorded in our backend telemetry log. You can contact our team by clicking on Report outage button mentioned below if you are blocked again in the future and would like to know the details message about it:
Since the event has been mitigated now, I'm sure your pipelines will work fine if you re-run the pipeline now.

How to solve Selenium Web Driver Exception in Windows and Python?

I am trying to use selenium library in my python script.
I am using Windows 10 and I have downloaded the latest chrome driver required for selenium.
Although I have added the path till chromedriver.exe file in my system's PATH environment variable, yet I am getting following error-
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error:
Chrome failed to start: was killed
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location E:/pg/chromedriver.exe is no
longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.41.578737
(49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134
x86_64)
I searched this error in web and added chrome options arguments like below-
if __name__ == "__main__":
options = wd.ChromeOptions()
options.accept_untrusted_certs = True
options.assume_untrusted_cert_issuer = True
options.add_argument("--no-sandbox")
options.add_argument("--disable-impl-side-painting")
options.add_argument("--disable-setuid-sandbox")
options.add_argument("--disable-seccomp-filter-sandbox")
options.add_argument("--disable-breakpad")
options.add_argument("--disable-client-side-phishing-detection")
options.add_argument("--disable-cast")
options.add_argument("--disable-cast-streaming-hw-encoding")
options.add_argument("--disable-cloud-import")
options.add_argument("--disable-popup-blocking")
options.add_argument("--ignore-certificate-errors")
options.add_argument("--disable-session-crashed-bubble")
options.add_argument("--disable-ipv6")
options.add_argument("--allow-http-screen-capture")
options.add_argument("--start-maximized")
options.binary_location = chrome_binary # chrome.exe
driver_binary = r"E:/pg/chromedriver.exe"
driver = wd.Chrome(driver_binary, chrome_options=options)
try:
login(driver)
followers = scrape_followers(driver, account)
print(followers)
following = scrape_following(driver, account)
print(following)
finally:
driver.quit()
But it did not solve the error.
Has anyone faced the same issue? Please help me to solve this.
I am able to solve my issue.
I removed the 'r' from the chrome driver path and also the all .add_argument() and now it's working fine.
So instead of using driver_binary = r'E:\pg\chromedriver.exe'
I am using driver_binary = 'E:\pg\chromedriver.exe'

Error while starting ADFv2 Azure-SSIS Integration Runtime

We are trying to start the Azure-SSIS Integration runtime in ADFv2 using the Start-AzureRmDataFactoryV2IntegrationRuntime PowerShell command. The command runs for 20 minutes and then returns the following error: An error occurred while requesting the status of Integration Runtime, but you can manually execute the following command: Get-AzureRmDataFactoryV2IntegrationRuntime -DataFactoryName MyDataFactory -ResourceGroupName MyResourceGroup -Name MyIR –Status. The IR is getting started, but not sure why the command shows this error. Could you let me know how to resolve this?
There seems to be an IR provisioning error, so could you show the complete error message in PSH? Alternatively, the error message can also be found on the IR monitoring page of ADF web app.
I found Azure powershell version 5.1.1 has this issue, and when I upgrade Azure powershell to version 6.6, there is no such issue. you can upgrade to newest Azure powershell.

Unable to get JSON report for failed scenario using protractor

I'm working on cucumber protractor framework, And by giving the below comment I cab able to get the report in JSON format for successfully executed scenarios. But if my scenarios got failed I'm unable to get the JSON report.
In conf.js I have added the line: resultJsonOutputFile: 'report1.json',
And after executing I can able to see the below comments in comment prompt:
[15:54:39] E/launcher - AssertionError: expected true to be false
[15:54:39] E/launcher - Process exited with error code 199
But unable to get the JSON report. Could any one help me to get the JSON report for all success & failure execution.
If you add this ignoreUncaughtExceptions: true to your protractor-config file it should not throw the 199 error code.
If you've configured the format: 'json: result.json' like described here it should now output the result to a file.

Google drive Dredit sample app for dotnet

I was following exact the same steps as described in this article to test the dotnet app.
https://developers.google.com/drive/examples/dotnet
My env is visual studio 2010 and IIS 7
Everything was fine. The app deployment was successful and I could see the login screen and the "allow access" dialog. However once I granted access, I saw the following error.
Can anyone help?
Thanks,
Qiang
Server Error in '/' Application.
Failed to find or load the registered .Net Framework Data Provider.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.
Source Error:
Line 82: {
Line 83: StoredCredentialsDBContext db = new StoredCredentialsDBContext();
Line 84: StoredCredentials sc = db.StoredCredentialSet.FirstOrDefault(x => x.UserId == userId);
Line 85: if (sc != null)
Line 86: {
Source File: C:\Qiang\DrEdit\Models\Utils.cs Line: 84
You have to install Microsoft SQL Server Compact 4.0, which is used by the Entity Framework to map model classes into database entities.