question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uid Invalid value

See original GitHub issue

Hi! It seems like the last PR https://github.com/iMerica/dj-rest-auth/pull/266 broke the /dj-rest-auth/password/reset/confirm/ endpoint. If I use the last version of the package with the uid and token on the url which arrives on my email after creating the password reset request, I get

{
    "uid": [
        "Invalid value"
    ]
}

However, after commenting out the include from allauth in dj_rest_auth/serializers.py and using urlsafe_base64_decode instead, the password is successfully changed

Here is the relevant line on my urls.py file

path('password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),

I’m fairly new to django and I just started using this package, so the error may be on my side.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
SebJansencommented, Jun 29, 2021

@RommelTJ thanks for sharing your tmp solution to downgrade to 2.1.5; you saved me a lot of time!

2reactions
RommelTJcommented, Jun 28, 2021

I’m seeing a similar issue. Getting errors like the below on version 2.1.7.

{
    "non_field_errors": [
        "“MjJkNjQ4OWUtYjNiMS00MGIxLTgzMDAtMDcxOTAwNzc3YjUy” is not a valid UUID."
    ]
}

Edit: The issue goes away when I downgrade to 2.1.5. Version 2.1.6 still has the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Rest Auth - UID invalid value error - Stack Overflow
My workaround was to write a custom subclass for ResetPasswordForm , as follows: # helpers.py from server.users.forms import SendInviteForm ...
Read more >
Error: This value is already used by another document - FAQs
This means that another document in your repository already has this UID value. It could be a document that is drafted or in...
Read more >
[Solved]-Django Rest Auth - UID invalid value error-django
My workaround was to write a custom subclass for ResetPasswordForm , as follows: # helpers.py from server.users.forms import SendInviteForm def ...
Read more >
Admin Authentication API Errors | Firebase - Google
The provided uid must be a non-empty string with at most 128 characters. auth/invalid-user-import, The user record to import is invalid. auth/maximum-user-count ...
Read more >
Aadhaar enabled Public Distribution System - AePDS
UID Error Description. Sl No, Error Code, Error Description ... 94, 822, Invalid value in the bs attribute of Bio element within Pid....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found