microsoft / mindaro

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

Get only 503 errors after connecting my VSC to a remote AKS #115

Closed amsmota closed 3 years ago

amsmota commented 3 years ago

Hi all, after following all the instructions from documentation, including adding code to my nodejs to propagate request headers, the only thin I get from my remote app (that is working fine when B2K is not connected) are 503 errors with this on logs:

2021-02-10T13:32:08.698549226Z2021-02-10T13:32:08.6983520Z | RemoteAgent | TRACE | ReversePortForwardConnector on port 80 accepted incoming request as stream 509.2021-02-10T13:32:08.699087563Z2021-02-10T13:32:08.6986753Z | RemoteAgent | TRACE | AgentHub connnected for 80, id 5092021-02-10T13:32:08.699366682Z2021-02-10T13:32:08.6988293Z | RemoteAgent | TRACE | ReversePortForwardConnector.HookupStreamData ReadAsync 509 returns 165 bytes.2021-02-10T13:32:08.699378083Z2021-02-10T13:32:08.6993106Z | RemoteAgent | TRACE | AgentHub received for 80, id 509, size 1652021-02-10T13:32:08.751757877Z2021-02-10T13:32:08.7516304Z | RemoteAgent | TRACE | AgentHub disconnect for 80, id 509\nOperation context: <json>{"clientRequestId":"e452af7d-f732-4a5a-9c4c-5d82f38e63c8","correlationId":"16f9054c-a08a-4559-8ca0-3ed582fba5391612958517787:1c9c8887758c:bcf6b18e8582","requestId":null,"userSubscriptionId":null,"startTime":"2021-02-10T13:30:48.7618266Z","userAgent":"RemoteAgent/1.0.20210126.4","requestHttpMethod":null,"requestUri":null,"version":"1.0.20210126.4","requestHeaders":{},"loggingProperties":{"applicationName":"RemoteAgent","deviceOperatingSystem":"Linux 4.15.0-1103-azure #114~16.04.1-Ubuntu SMP Wed Dec 16 02:39:42 UTC 2020","framework":".NET Core 3.1.11","processId":1,"targetEnvironment":"Production"}}</json>2021-02-10T13:32:08.752782147Z2021-02-10T13:32:08.7517798Z | RemoteAgent | TRACE | PortForwardConnector.Disconnect 5092021-02-10T13:32:08.752906555Z2021-02-10T13:32:08.7518641Z | RemoteAgent | TRACE | AgentHub closed for 80, id 5092021-02-10T13:32:08.752921156Z2021-02-10T13:32:08.7522770Z | RemoteAgent | TRACE | ReversePortForwardConnector.StartReceiveDataAsync exception 'Unable to read data from the transport connection: Operation canceled.' when invoking handler. Close.

Please advise.

Thank you.

amsmota commented 3 years ago

Hi all, sorry for this but actually my 503 errors AFAICT were caused by defining the wrong local port of my service....

I still have issues, but not this one :)

Thanks and sorry.