champyoyozaOriginal post
Web Developer
Hello, I am receiving the following error when I am trying to deploy a function from my local.
> appwrite push functions --function-id xxxxxxxxx
ℹ Info: Validating functions ...
ℹ Info: Checking for changes ...
ℹ Info: Pushing functions ...
✗ Error • myfuncname (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:
_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!
Summary
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.