Skip to content
Back

The file size is either not valid or exceeds the ma

  • 0
  • Functions
  • Cloud
champyoyoza
13 Dec, 2025, 00:40

Hello, I am receiving the following error when I am trying to deploy a function from my local.

TypeScript
> appwrite push functions --function-id xxxxxxxxx

Info: Validating functions ...
Info: Checking for changes ...
Info: Pushing functions ...
Errormyfuncname (xxxxxxxxx)      • The file size is either not valid or exceeds the ma
Error: No functions were pushed.

I have tried setting the following environment variables with no luck:

TypeScript
_APP_COMPUTE_SIZE_LIMIT=500000000
_APP_FUNCTIONS_SIZE_LIMIT=500000000
_APP_FUNCTIONS_BUILD_SIZE_LIMIT=500000000

.tar.gz file is 30.5MB. I have deployed this function in this manner before, in fact according to the console those deploys were 46MB. I did not have any environment variables set then, so I'm really not sure what caused this all of a sudden.

Any tips to get this working? Thanks!

TL;DR
Error message indicates file size is not valid or exceeds the limit when deploying function from local. Environment variables _APP_COMPUTE_SIZE_LIMIT, _APP_FUNCTIONS_SIZE_LIMIT, _APP_FUNCTIONS_BUILD_SIZE_LIMIT are set to 500000000, but issue persists. `.tar.gz` file is 30.5MB. Previous deploys were 46MB without these environment variables. Looking for tips to resolve this sudden issue.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more