microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Unable to debug gRPC Service that is called over SSL #157

Open andywahr opened 3 years ago

andywahr commented 3 years ago

I'm trying to debug the Backend Container. I issue my test request without "Bridge to Kubernetes" running, I successfully call the service. When I run the Backend Container thru Bridge to Kubernetes, the client reports an immediate error: "HttpRequestException: The SSL connection could not be established, see inner exception. IOException: Unable to read data from the transport connection: Connection reset by peer. SocketException: Connection reset by peer"

To Reproduce

I can provide snippets from the logs, would prefer to not just upload them all. Going thru them I did see 2 WARNGs:

amsoedal commented 3 years ago

Hey @andywahr, thanks so much for providing this info. If you feel more comfortable, could you please send us a zip of your log directory at BridgeToKubernetes@microsoft.com? Having the full logs will be helpful!

andywahr commented 3 years ago

Here are the logs, I stopped the EndpointManager process manually to flush the logs after the error. bridge-mindarocli-2021-04-09-12-41-15-45456.zip

andywahr commented 3 years ago

Sorry also forgot to mention:

mmikkola commented 3 years ago

I'm also experiencing this with VS 2019 16.10.3 and Bridge to Kubernetes 0.1.

When the debug session is live the connection to the nodeport simply gets reset. Connecting to localhost:5000 on the machine running VS2019 works.

I've also tried running a backend service, and getting the same result (connection reset)