Registration of new users results in an error #45

Closed
opened 2019-06-19 08:35:11 +00:00 by david · 2 comments
david commented 2019-06-19 08:35:11 +00:00 (Migrated from dev.cryptec.at)

Related to #34

https://sentry.cryptec.at/sentry/cookingcryptecat/issues/11/

AttributeError: 'str' object has no attribute 'decode'
(6 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "claypot/accounts/views.py", line 91, in post
    serializer.save()
  File "claypot/accounts/serializers.py", line 154, in save
    send_signup_mail(user, request)
  File "claypot/accounts/utils.py", line 20, in send_signup_mail
    "uid": urlsafe_base64_encode(force_bytes(user.pk)).decode(),

AttributeError: 'str' object has no attribute 'decode'
Related to #34 https://sentry.cryptec.at/sentry/cookingcryptecat/issues/11/ ``` AttributeError: 'str' object has no attribute 'decode' (6 additional frame(s) were not displayed) ... File "rest_framework/views.py", line 455, in handle_exception self.raise_uncaught_exception(exc) File "rest_framework/views.py", line 492, in dispatch response = handler(request, *args, **kwargs) File "claypot/accounts/views.py", line 91, in post serializer.save() File "claypot/accounts/serializers.py", line 154, in save send_signup_mail(user, request) File "claypot/accounts/utils.py", line 20, in send_signup_mail "uid": urlsafe_base64_encode(force_bytes(user.pk)).decode(), AttributeError: 'str' object has no attribute 'decode' ```
root commented 2019-06-19 08:38:20 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit 26ad48eaa5

mentioned in commit 26ad48eaa521f8ae088e57d53bc1717d15c412a1
root commented 2019-06-19 08:38:25 +00:00 (Migrated from dev.cryptec.at)

closed via commit 26ad48eaa5

closed via commit 26ad48eaa521f8ae088e57d53bc1717d15c412a1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
root/claypot#45
No description provided.