1

I have an API hosted on Google Cloud Run. I'm not sure how to replicate this error, but it seems like during the first few pings after a while of inactivity, the API is down and I get the following error: rpc error: code = Unavailable desc = last resolver error: produced zero addresses.

After a few more pings, the API behaves correctly. I never get this error in development, so is this just a problem with Google Cloud Run?

Ismail
  • 1,068
  • 1
  • 6
  • 11
abc
  • 1,141
  • 12
  • 29
  • Which language and version are you using with Cloud Run? It sounds like the service you are calling is temporarily unavailable for a short period during the deployment, and the failed attempt needs handling. It will be interesting to check the logs and post back here with any error messages: https://cloud.google.com/run/docs/troubleshooting – Andrew Dec 21 '20 at 11:03
  • Go 1.15. I thought for a while that Cloud run would hot swap the new build after it's built to prevent downtime, no? – abc Dec 22 '20 at 01:52
  • I am not overfly familiar with Go but wonder with it is an issue with the code. Have you checked this similar case on Stack Overflow? They received a similar error message https://stackoverflow.com/questions/63372312/rpc-error-code-unavailable-desc-connection-closed-in-go-code – Andrew Dec 22 '20 at 09:45

0 Answers0