Cloud Run for Anthos http2 unexpected EOF error | Google Cloud Platform

461 Views Asked by At

I deployed service on Google Cloud Run for Anthos. When I deploy with Http2 enabled I get this error

unexpected EOF

and sometimes randomly

read tcp 127.0.0.1:39130->127.0.0.1:80: read: connection reset by peer

If I deploy with it off everything works fine expect WebSockets. The purpose of migrating Cloud Run for Anthos was to add WebSocket support.

Please help.

1

There are 1 best solutions below

1
On

According to the Cloud Run on Anthos Official Documentation, the error read tcp 127.0.0.1:39130->127.0.0.1:80: read: connection reset by peer is caused because the URL you are trying to access is not allowed by your HTTP proxy.

To mitigate this issue, please check that your HTTP proxy allowlist includes the following URLs/domains:

gkeconnect.googleapis.com
oauth2.googleapis.com/token
www.googleapis.com/oauth2/v1/certs