Request must be smaller than 69905067 bytes for the CreateFunction operation

I previously reported that dependencies are not being automatically installed in my 4 functions under /functions/foo/package.json and /functions/bar/package.json, etc.

I have added to netlify.toml the following plugin:

[[plugins]]
package = “@netlify/plugin-functions-install-core”

This seems to be the solution, but builds are failing with:

Request must be smaller than 69905067 bytes for the CreateFunction operation

Any insight on what could be causing this error?

My functions are all relatively simple, mostly only calling node-fetch, firebase-admin and one other dependency.

It seems self-evident that we would want dependencies in functions to be npm installed. It’s hard for me to understand why information on how to make this happen isn’t readily available.

Hey @question_asker,

AFAIK, the Lambda package must remain under 64MB (I think, ideally, it should be under 50MB). It’s not a frequent build error (51 times in the last 7 days – I checked).

Do you have one netlify.toml at the root of your directory, by the way? A little unrelated but when I was sleuthing, I stumbled upon this.