Free auditStart free
GuideError · CDN and hosting errors

Cloud Run 503 error

Find why Cloud Run returns 503: connection or malformed response errors, memory limits, instance and concurrency limits, credentials, with gcloud commands to fix.

4 min
read
6
sources
Nov 1, 2026
updated
Scaplet Editorial Team
author
In one line

A Cloud Run 503 has several documented causes, each with its own log message: a malformed response or broken instance connection, instances killed for exceeding memory, a service at its maximum instance limit under high concurrency, or missing default credentials. Read the log text, match it to the table, then change memory, concurrency, max instances or timeouts.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Documented Cloud Run 503 messages

Match the log text to the cause

Cloud Run does not have one 503. Google's troubleshooting guide lists separate 503 messages, and the message in Cloud Logging tells you which one you have. Start there.
Log message (shortened)

"The request failed because either the HTTP response was malformed or connection to the instance had an error."

What Google says it means
A connection problem with the container instance
Go to
Fix 1
Log message (shortened)

"While handling this request, the container instance was found to be using too much memory and was terminated."

What Google says it means
Memory limit exceeded; can appear as HTTP 500 or 503
Go to
Fix 2
Log message (shortened)

"The Cloud Run service probably has reached its maximum container instance limit. Consider increasing this limit."

What Google says it means
Instances under high CPU load cannot process all requests
Go to
Fix 3
Log message (shortened)

"HTTP 503: System.InvalidOperationException ... your Default credentials were not found."

What Google says it means
Application Default Credentials are missing
Go to
Fix 4
Log message (shortened)

5xx responses with no app-level cause

What Google says it means
Billing account at a spend cap can make resources return 5xx
Go to
Fix 5
02Checklist

Fix 1: malformed response or instance connection error

Check Cloud Logging for these, as Google lists them: out-of-memory messages (see Fix 2), and liveness probe failures such as LIVENESS HTTP probe failed 1 time consecutively for container CONTAINER_NAME on port 8080. The instance has been shut down.. For a failed probe, enable logging and tracing to find the cause of the latency, and increase the probe's timeout period.
First2
If requests end in 503 before reaching the request timeout set in Cloud Run, update your framework's own timeout. Node.js: update server.timeout through server.setTimeout; server.setTimeout(0) gives an unlimited timeout.
Python: update Gunicorn's default timeout, the one that logs [CRITICAL] WORKER TIMEOUT.
Next1
If traffic goes through a Serverless VPC Access connector, check its throughput chart for red bars; if there is one, increase the connector's max instances or instance type, or compress the traffic.
Then1
If one instance receives more than 800 requests per second, available TCP sockets might be exhausted. Turn on HTTP/2 for the service and make the changes the service needs to support it.
03Check it

Fix 2 and 3: memory and capacity

For memory, look for related errors in the varlog/system logs and increase the memory limit if instances are exceeding it. Google notes that files written to the local file system count toward available memory, including log files written outside /var/log/* and /dev/log.

For the max-instance 503, Google says to increase the maximum number of container instances for the service, or lower the service's concurrency. The default maximum concurrent requests per instance is 80, and --concurrency default reverts to it.

Request timeout: default is 300 seconds, range 1 to 3600
gcloud run services update SERVICE --timeout=TIMEOUT
Raise max instances, or lower concurrency
# more instances
gcloud run services update SERVICE --max-instances MAX-VALUE

# fewer simultaneous requests per instance
gcloud run services update SERVICE --concurrency 1

# back to the default of 80
gcloud run services update SERVICE --concurrency default
04Your call

Fix 4 and 5: credentials and billing

For the credentials 503, install and initialize the gcloud CLI, set up Application Default Credentials with gcloud auth application-default login, or point GOOGLE_APPLICATION_CREDENTIALS at a credential JSON file in your project. On Cloud Run itself, Google says to configure the service identity.
If this fits

Raise limits when

  • Logs say the max instance limit was reached
  • CPU load is high and requests queue
  • Memory logs say the instance was terminated
Or

Fix the app when

  • Probe failures point to slow responses
  • Credentials are missing
  • The framework times out before Cloud Run does

If your billing account reached a spend cap, Cloud Run resources might return HTTP 5xx. Check the Cloud Run console for an alert banner, review budgets in the Cloud Billing console, and lift or adjust the cap. After lifting it, Google says it might take up to 30 minutes for the resource to resume serving traffic.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Why does Cloud Run return 503?

Google documents several causes: a malformed response or connection error to the instance, instances exceeding memory, the service reaching its maximum instance limit under high concurrency, missing default credentials, and billing spend caps. The Cloud Logging message identifies which.

02How do I fix Cloud Run 503 under load?

Increase the service's maximum instances, or lower concurrency with --concurrency. Google says the max-instance 503 can happen when instances are under high CPU load and cannot process all requests.

03Is a Cloud Run 503 the same as a 429?

No. Google documents 429 when no instance is available because the max-instances limit was hit, and 503 for the messages in the first table. Check the log text rather than the number.

04What is the Cloud Run request timeout?

Default 5 minutes (300 seconds), extendable to 60 minutes (3600 seconds). A request over it returns 504, not 503.

Sources · 6

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • mozilla.org
  1. 01Google Cloud: Troubleshoot Cloud Run issuescloud.google.com · checked 2026-11-01
  2. 02Google Cloud: Configure request timeout for servicescloud.google.com · checked 2026-11-01
  3. 03Google Cloud: Set maximum concurrent requests per instancecloud.google.com · checked 2026-11-01
  4. 04Google Cloud: Set maximum instances for servicescloud.google.com · checked 2026-11-01
  5. 05How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
  6. 06MDN: 503 Service Unavailabledeveloper.mozilla.org · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane