Home
Support Forums

Functions: request must be smaller than 69905067 bytes for the CreateFunction operation

I suddenly receive this error while building the website. Not sure why though, because all the previous builds were deployed and functioning as expected.

I’ve seen the error message before in different threads, but not sure how to solve it. Especially since this was working before and I didn’t change anything inside the functions. Any hints?

Hi, @mdings. Would you please test using the new function bundler described in this blog post below:

If that doesn’t resolve the issue or if there are other questions, please let us know.

Well the build isn’t failing anymore, so that’s a good thing. Now I have to test if all my functions are still working as expected

1 Like

I was already afraid that something else would break. From the error logs inside the Netlify functions stream I get the error below now.


{"errorType":"Error","errorMessage":"libuuid.so.1: cannot open shared object file: No such file or directory","stack":["Error: libuuid.so.1: cannot open shared object file: No such file or directory","    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)","    at Module.load (internal/modules/cjs/loader.js:863:32)","    at Function.Module._load (internal/modules/cjs/loader.js:708:14)","    at Module.require (internal/modules/cjs/loader.js:887:19)","    at require (internal/modules/cjs/helpers.js:74:18)","    at Object.<anonymous> (/var/task/node_modules/canvas/lib/bindings.js:3:18)","    at Module._compile (internal/modules/cjs/loader.js:999:30)","    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)","    at Module.load (internal/modules/cjs/loader.js:863:32)","    at Function.Module._load (internal/modules/cjs/loader.js:708:14)"]}

The function that throws this relies on GitHub - Automattic/node-canvas: Node canvas is a Cairo backed Canvas implementation for NodeJS.. My netlify.toml looks as following

[functions]
  node_bundler = "esbuild"

[functions."image-generator"]
  external_node_modules = ["canvas"]

Do I need to rebuild this and then include it? And if so, how do I do that? Kind of stuck here…

Hi @mdings,

This might help:

1 Like

Hey that actually worked! A bit difficult for the not so experienced user but I figured it out :grinning:

1 Like