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
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
I found out that this problem occurs in the Python 13.5.0 library. Everything works fine in version 12.0.0
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...