johanbrandhorst / grpcweb-example

An example implementation of a GopherJS client and a Go server using the Improbable gRPC-Web implementation
MIT License
95 stars 12 forks source link

Websocket connection fails with TLS error #14

Closed johanbrandhorst closed 6 years ago

johanbrandhorst commented 6 years ago
[grpcweb-example-e8d1556b-1]2018-02-04T10:32:22.149534773Z WARN[2018-02-04T10:32:22.149392233Z] Failed to create transport: connection error: desc = "transport: authentication handshake failed: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config" 
[grpcweb-example-e8d1556b-1]2018-02-04T10:32:22.150669434Z DEBU[2018-02-04T10:32:22.150324609Z] Closed connection                            
[grpcweb-example-e8d1556b-1]2018-02-04T10:32:22.150696443Z 2018/02/04 10:32:22 http: TLS handshake error from 172.17.0.1:35418: EOF 

This seems to be happening only for websocket requests. Could be a problem with the proxy itself.

johanbrandhorst commented 6 years ago

Fixed it :)