Skip to content
Back

Server error 500 in appwrite 1.8.0

  • 0
  • 2
  • Self Hosted
Nevets
30 Oct, 2025, 23:41

jwt = users.create_jwt(res["userId"])["jwt"]

I got this error 500 after changing environment variables and restarting containers export _APP_DOMAIN=server1.avadesk.ru export _APP_DOMAIN_FUNCTIONS=server1.avadesk.ru export _APP_DOMAIN_TARGET=server1.avadesk.ru export _APP_CONSOLE_WHITELIST_ROOT=enabled export _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=info@platovco.ru export _APP_SYSTEM_EMAIL_ADDRESS=info@platovco.ru export _APP_EMAIL_CERTIFICATES=info@platovco.ru export _APP_STORAGE_LIMIT=150000000 docker compose down && docker compose up -d

There are my logs in docker:

appwrite | [Error] Method: POST appwrite | [Error] URL: /v1/users/:userId/jwts appwrite | [Error] Type: TypeError appwrite | [Error] Message: {closure}(): Argument #2 ($sessionId) must be of ty pe string, null given, called in /usr/src/code/vendor/utopia-php/framework/src/A pp.php on line 614 appwrite | [Error] File: /usr/src/code/app/controllers/api/users.php

TL;DR
After redeploying functions, encountered a server error 500 in appwrite 1.8.0 specifically in the Python 13.5.0 library. Rolling back to version 12.0.0 resolved the issue.
31 Oct, 2025, 08:04

After redeploying functions, i got this error in other places:

Traceback (most recent call last): File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/client.py", line 117, in call response.raise_for_status() File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://server1.avadesk.ru/v1/users/68c6fd5b003e4861188a/jwts

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/server/src/function/src/main.py", line 33, in main jwt = users.create_jwt(res["userId"])["jwt"] File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/services/users.py", line 667, in create_jwt return self.client.call('post', api_path, { File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/client.py", line 137, in call raise AppwriteException(response.json()['message'], response.status_code, response.json().get('type'), response.text) appwrite.exception.AppwriteException: Server Error

31 Oct, 2025, 09:43

I found out that this problem occurs in the Python 13.5.0 library. Everything works fine in version 12.0.0

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