-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
HTTP 500 in /api/users/me
#579
Comments
same here, but with sqlite3 |
Found the next level of the issue: |
The problem is this line: So it only relates to user accounts that are created via the |
@oliverrahner thank you for awesome report! Issue seems to happen only with mysql/mariadb/sqlite, but not with postgres. I will fix |
Sqlalchemy seems to map UUID field types to char columns for mysql (with a fixed 32 char size!), which makes the format very explicit, leading to the issue with these differences… |
I've published 3.0.2 which should fix current issue (uuid/mysql/sqlite thingy). |
@ciur I can confirm this fixed my issue! |
Description
Situation:
docker-compose.yml
below)/api/users/me
fails with an HTTP 500The JWT for the request to
/api/users/me
is this:In the logs I see:
The actual database query is this:
So seemingly, somewhere username and user id get mixed up, because the query tries to find a user that has his id as name.
When I change the username to the user's id, I can log in, and other issues appear then but maybe that's something for a follow up.
Info:
docker-compose.yml
:The text was updated successfully, but these errors were encountered: