Skip to content
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

_get_or_create_local_user - User.DoesNotExist: or detail": "duplicate key value violates unique constraint \"users_customuser_username_key\"\nDETAIL: Key (username)=(...) already exists #44

Open
dejavvu opened this issue Mar 27, 2023 · 0 comments

Comments

@dejavvu
Copy link

dejavvu commented Mar 27, 2023

Hi

I don't know if this is related to drf-firebase-auth but I believe there is something I'm missing here. I'm developing a flutter app with a Django backend. After users sign in I send a request to REST APi and pull the necessary data.

This error happens on initial signup, after restarting the app, no error shows up. After the initial signup Server returns 403. If I check the logs I found these 2 errors.

I believe something happens when the local user is being created but I couldn't really find a solution. I caught these using Sentry and Apilogs
- _get_or_create_local_user - User.DoesNotExist: %useremail%
- detail": "duplicate key value violates unique constraint "users_customuser_username_key"\nDETAIL: Key (username)=(...) already exists

I'm also using default drf-firebase-auth settings.

Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant