FixMyBerlin / fixmy.platform

Backend providing (geo)data and content for multiple applications
GNU Affero General Public License v3.0
11 stars 3 forks source link

Users cannot set their password when logged in #713

Open ohrie opened 2 years ago

ohrie commented 2 years ago

Issue description

When on https://fixmyberlin-staging.netlify.app/profil cannot set their password because some dependency is not working correctly.

Steps to reproduce the issue

  1. Go to /profil
  2. Enter the new and current password correct

What's the expected result?

The password get's set according to user data.

What's the actual result?

The HTTP request fails with Error code 406 "Not Acceptable". grafik

In the server logs this appears:

Not Acceptable: /api/users/set_password/

The url is provided through djoser, see docs.

ohrie commented 2 years ago

Potential solution could be to debug at the location where djoser hooks.Or search for the correct HTTP Headers needed, if this is the issue.

The exception is not thrown by djoser, but the django rest framework : https://github.com/encode/django-rest-framework/blob/71e6c30034a1dd35a39ca74f86c371713e762c79/rest_framework/exceptions.py

ohrie commented 2 years ago

@rush42 You could try your skills on this problem, if you want :)