-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The grpc port is not being injected. #248
Comments
Thanks for the feedback. This makes sense. Will add it to address in our future backlog |
Ohh, I've been stuck on this way too long. Thanks !!!! |
The Dapr Client SDK uses gRPC (by default) to communicate with the Dapr sidecar, so it makes sense you only see the issue then. Dapr used to use Ideally we don't want any Dapr ports statically defined in configuration files as that's prone to colliding with something else, as well as just being a maintenance nightmare. The problem is that the VS Code debugging API makes it difficult to flow information from a task (in |
The extension just like the CLI needs to inject the environment variables for HTTP and GRPC ports. When I was debugging an app that used the Client SDK I was getting the following error when deubgging:
The only way around it was to explicitly set the GRPC port in the tasks.json.
Even though my app did not use GRPC (directly) without that first line above the code would not work. When I changed my code to just use C# HttpClient everything worked. It only failed when using the SDK.
When I ran my app from the CLI (without the debugger) everything worked as expected.
The text was updated successfully, but these errors were encountered: