Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

HTTP 503: Malformed response or container instance connection issue

Error:

The request failed because either the HTTP response was malformed or connection to the instance had an error. Additional troubleshooting documentation can be found at: https://cloud.google.com/run/docs/troubleshooting#malformed-response-or-connection-error

Our  services are connected internally with Cloud Pub/Sub topics with push subscriptions enabled. So whenever the messages are published to a topic from one service, push endpoint ( which you configured in Terraform) is called by Google API team to send the messages to your services so by this time few push endpoint calls are failing due to HTTP 503 error message.

0 1 1,231
1 REPLY 1

Hi @msivalin,

Welcome to Google Cloud Community!

You're getting an HTTP 503 error with Cloud Run, indicating issues with your service's response or connection. This could be due to:

  • Malformed response from your application code.
  • Connection problems between Cloud Run and your container instance.

Since your service uses Cloud Pub/Sub, these failing push endpoint calls might be the result.

To troubleshoot:

  1. Check Cloud Logging for resource limitations or application errors.
  2. Increase resources or fix code issues based on findings.
  3. Adjust the socket listen queue size if necessary.

Refer to Google's Cloud Run troubleshooting documentation for detailed guidance.

Top Solution Authors