Cannot call Google Cloud Function behind Firebase Hosting - Status 503 but no indication on status pages

540 views Asked by At

I have a problem accessing a Google Cloud HTTP Function that is exposed through Firebase Hosting. I assume there is an issue with the CDN, because the function has not changed, but I do not see anything on the status pages:

Accessing the function directly, i.e. not through Firebase Hosting but using the https://{region}{app}.cloudfunctions.net/{name} URL seems to be running into the same issues.

Initially, I received this response after close to two minutes

content-type: text/plain;charset=US-ASCII
date: Tue, 06 Oct 2020 14:10:01 GMT
fastly-host: cache-hhn4049-HHN
server: Varnish
status: 503

Timed out while waiting on cache-hhn4049-HHN

This seems to indicate a problem with Fastly (listed as a subprocessor for Firebase), but their status page shows everything as operational.

After some time, I seem to be getting responses from a different party after a timeout of 15-30s:

(stripped HTML for readability)

accept-ranges: bytes
content-length: 323
content-type: text/html; charset=UTF-8
date: Tue, 06 Oct 2020 14:17:22 GMT
fastly-restarts: 1
server: Google Frontend
status: 500
vary: x-fh-requested-host, accept-encoding
x-cache: MISS
x-cache-hits: 0
x-cloud-trace-context: 234db5d36bf48ff0a385ed838e14676c
x-served-by: cache-hhn4049-HHN
x-timer: S1601993817.546227,VS0,VE25795

Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.

Of course, waiting for 30 seconds does not help.

In the cloud functions log I do see some requests going through and taking between 400-500ms for normal execution. I can see one 'crash' finishing in 54ms, two longer executions at around 20s, and one timeout (60s). The function is used as a part of a custom authentication process, so there are usually a lot of requests.

Any advice on what I can do to understand what is the issue? Or a status page that can actually tell me where I can look for a problem?

1

There are 1 answers

4
Frank van Puffelen On BEST ANSWER

firebaser here

There were indeed issues with deploying Cloud Functions in the past hour or so. We're working on adding the issue to the Firebase status page.

It should now mostly be back to normal. For the current status, see the yellow banner at the top of the Google Cloud dashboard. If there is no yellow banner, the problem is likely completely fixed.