Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty function requires too much memory #1601

Open
mrkaraaslan opened this issue Aug 29, 2024 · 0 comments
Open

empty function requires too much memory #1601

mrkaraaslan opened this issue Aug 29, 2024 · 0 comments

Comments

@mrkaraaslan
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants