Hi everyone I got the URL_UNREACHABLE-UNREACHABLE_5xx. Original HTTP response code number = 500 error . What was strange is that it didn’t happen every time. I run my cloud function 3 times per hour, and I got this error for like 3-4 times a day. I’ve redeployed it several times but still got error
Hi @changjo ,
Welcome to the Google Cloud Community!
The error URL_UNREACHABLE-UNREACHABLE_5xx (Response code: 500) typically indicates an issue with accessing the Cloud Function URL or a problem with its dependencies. Here are some steps you can try:
- Verify external dependencies: Confirm if the destination URL your function depends on is reachable and stable
- Run your Cloud Function locally: Test if you’re able to reach the destination URL locally
- Review your code: A user posted a similar thread here that was resolved by updating their source code
- Allocate more Cloud resources: Your Cloud Function may have too many pending requests that are aborted due to a spike in traffic, scalability configuration issues, or reaching the Cloud Run functions quota limit
As a workaround, try running a Connectivity Test to further diagnose and analyze the issue.
Was this helpful? If so, feel free to accept this answer as “Solution”. If you need any additional assistance you may also reply here within two business days. Share your logs, screenshots, or any additional errors you might have received and I’ll be happy to help.