Project

General

Profile

Bug #66962

Crash sur POST /api/users

Added by Emmanuel Cazenave 7 months ago. Updated 7 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04 July 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Si on oublie le slash final dans l'URL :

Internal Server Error: /api/users
Traceback (most recent call last):
  File "/home/cazino/envs/publik-env-py3/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/cazino/envs/publik-env-py3/lib/python3.9/site-packages/django/utils/deprecation.py", line 93, in __call__
    response = self.process_request(request)
  File "/home/cazino/envs/publik-env-py3/lib/python3.9/site-packages/django/middleware/common.py", line 53, in process_request
    path = self.get_full_path_with_slash(request)
  File "/home/cazino/envs/publik-env-py3/lib/python3.9/site-packages/django/middleware/common.py", line 86, in get_full_path_with_slash
    raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to authentic.dev.publik.love/api/users/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

Also available in: Atom PDF