Edge Functions: request entity too large #20864
Unanswered
martinrobaey5th
asked this question in
Questions
Replies: 2 comments
-
|
@martinrobaey5th We currently do have a max limit for Edge Functions of 10MB. Your function size is around 12MB. One of the things you can try is only import the submodules you need from This will also help to reduce the boot time of your function. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is there a way to inspect what takes so much space in edge function build ? so we can try to remove big packages.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear,
I encounter a problem trying to deploy a little simple function to our project.
I use the google api to create an event in an agenda. Locally it works. When I try to deploy to the server I get this error "request entity too large".
I understand that my script seems to be too big (indeed the content-length of the function being pushed is 12651518 Bytes). Could you help to reduce the size of the script ?
Even though I find my script so simple that I find it odd to be so big. I am only importing these two lib :
import { google } from 'npm:googleapis';
import { JWT } from 'npm:google-auth-library';
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions