Skip to content Skip to sidebar Skip to footer

Cloud Functions For Firebase Timeout

Simple cloud function to get database data is not working. getusermessage() is not working Error: Function execution took 60002 ms, finished with status: 'timeout' Index.JS for

Solution 1:

You didn't say which of your three functions is timing out, but I'll take a guess at which one. Your HTTPS function getUserMessage isn't generating a response to the client. Cloud Functions will wait for 60 seconds (by default) for it to generate a response, and if it doesn't, it will kill the function and leave that message in the log.

Every code path in an HTTPS function should generate some response to the client.

Solution 2:

You can set the timeout and memory using runWith during function declaration,

exports.getUserMessage = functions.runWith({ memory: '2GB', timeoutSeconds: 360 }).https.onRequest(

Post a Comment for "Cloud Functions For Firebase Timeout"