8000 🐛 Bug Report: Incorrect variable name in error message when site upload size limit is exceeded · Issue #9904 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 Bug Report: Incorrect variable name in error message when site upload size limit is exceeded #9904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
Julien-prrs opened this issue May 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Julien-prrs
Copy link

👟 Reproduction steps

  1. Attempt to deploy a site (via CLI or web UI).

  2. Use a deployment archive that exceeds the allowed size limit (default to 30MB).

  3. Observe the error message returned.

👍 Expected behavior

The error message should indicate the correct environment variable responsible of the sites size limit (_APP_COMPUTE_SIZE_LIMIT).

👎 Actual Behavior

The following error is returned:

[Error] URL: /v1/sites/:siteId/deployments
[Error] Type: Appwrite\Extend\Exception
[Error] Message: The file size is either not valid or exceeds the maximum allowed size. Please check the file or the value of the _APP_STORAGE_LIMIT environment variable.
[Error] File: /usr/src/code/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php
[Error] Line: 187

This error references the _APP_STORAGE_LIMIT variable, which is incorrect. After digging the source code, I've found that the actual variable responsible of this behavior is _APP_COMPUTE_SIZE_LIMIT.

Also, I did not find any reference to this variable within the documentation, making it a bit harder to troubleshoot.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

I'm running appwrite localy on a fresh Debian (WSL) installation.

Appwrite version : 1.7.4
SDK version : 7.0.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Julien-prrs Julien-prrs added the bug Something isn't working label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0