If I set a token on a storage file using the appwrite function (createFileToken), I can no longer see the file in detail in the appwrite console. I get the error: Invalid Argument Server Error.
Docker Logs:
[Error] Timestamp: 2025-09-27T14:04:42+00:00
[Error] Method: GET
[Error] URL: /v1/tokens/buckets/:bucketId/files/:fileId
[Error] Type: Ahc\Jwt\JWTException
[Error] Message: Invalid maxAge: Should be greater than 0
[Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php
[Error] Line: 42
[Error] Timestamp: 2025-09-27T14:04:42+00:00
[Error] Method: GET
[Error] URL: /v1/tokens/buckets/:bucketId/files/:fileId
[Error] Type: Ahc\Jwt\JWTException
[Error] Message: Invalid maxAge: Should be greater than 0
[Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php
[Error] Line: 42
Browser Console:
GET https://appwrite.vezept.de/v1/tokens/buckets/68d4e29500081045f8bb/files/68d7ed2b000211cfe158 500 (Internal Server Error)
POST https://plausible.io/api/event net::ERR_BLOCKED_BY_CLIENT
However, everything works fine within my Angular app. I just became this warning in docker logs:
[2025-09-27 14:13:59 *55.38] WARNING Context::build_header() (ERRNO 7105): You have set 'Transfer-Encoding', 'Content-Length' will be ignored
Recommended threads
- Hosting Issues with Static IP not domain...
I have a machine with Static Public IP. I want to host Appwrite Site on it but I tried it but it doesn't allow IP addresses in Domain names. What should I do h...
- encrypt and decrypt buckets
I have a bucket where I switched from encryption to not encrypting files. I later realized that files already uploaded earlier stay encrypted. Now I have a buck...
- Unable to Create Storage After Upgrading...
We upgraded our Appwrite instance from version 1.8.0 to 1.9.0 and successfully ran the migration process. However, after the upgrade, we are no longer able to c...