firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

empty function requires too much memory

Open mrkaraaslan opened this issue 1 year ago • 0 comments

Related issues

[REQUIRED] Version info

node: v18.20.3

firebase-functions: 5.1.0

firebase-tools: 13.15.4

firebase-admin: 12.4.0

[REQUIRED] Test case

/* eslint max-len: ["error", { "code": 120 }]*/

const functions = require("firebase-functions");

exports.createReport = functions.https.onCall(async (data) => {
  return null;
});

[REQUIRED] Steps to reproduce

deploy and call function

[REQUIRED] Expected behavior

256 MB memory is enough

[REQUIRED] Actual behavior

Memory limit of 256 MiB exceeded with 312 MiB used. Consider increasing the memory limit,

Were you able to successfully deploy your functions?

Yes and no,

I have tried to deploy it multiple times, sometimes I got the following error:

Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: function load attempt timed out.. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.

Error: There was an error deploying functions

mrkaraaslan avatar Aug 29 '24 10:08 mrkaraaslan