Skip to content
Back

Server error 500 in appwrite 1.8.0

  • 0
  • 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
Server error 500 in Appwrite 1.8.0 occurred after changing environment variables and restarting containers. The error is related to creating a JWT for users. The logs indicate a TypeError in the users.php file. The issue is with the argument `$sessionId` not being of type string.
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