Cloud Functions for Firebase killed due to memory limit exceeded

前端 未结 10 1760
天涯浪人
天涯浪人 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:39

    I was lost in the UI, couldn't find any option to change the memory, but finally found it:

    1. Go to the Google Cloud Platform Console (not the Firebase console)
    2. Select Cloud Functions in the menu
    3. Now you see your firebase function in here if it's correct. Otherwise check if you selected the right project.
    4. Ignore all checkboxes, buttons and menu items, just click on the name of the function.
    5. Click on edit (top menu) and only change the allocated memory and click save.

提交回复
热议问题