I keep getting a sporadic error from Cloud Functions for Firebase when converting a relatively small image (2mb). When successful, the function only takes about 2000ms or less t
The latest firebase deploy command does overwrite the memory allocation to default 256MB and timeout up to 60s.
Alternatively , to specify the desired memory allocation and maximum timeout , I use gcloud command such as:
gcloud beta functions deploy YourFunctionName --memory=2048MB --timeout=540s
Other options, please refer to:
https://cloud.google.com/sdk/gcloud/reference/beta/functions/deploy