Cloud Functions for Firebase killed due to memory limit exceeded

前端 未结 10 1939
天涯浪人
天涯浪人 2021-01-31 01:53

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

10条回答
  •  别跟我提以往
    2021-01-31 02:50

    you can add the configurations in your firebase functions definitions something like:

    functions.runWith({memory: '2GB', timeoutSeconds: '360'})
    

提交回复
热议问题