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

RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. D... #522

Open
sentry-io bot opened this issue May 22, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 22, 2024

Sentry Issue: FLASK-51

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 scefali.ngrok.io/webhook/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
  File "django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "django/utils/deprecation.py", line 93, in __call__
    response = self.process_request(request)
  File "django/middleware/common.py", line 62, in process_request
    path = self.get_full_path_with_slash(request)
  File "django/middleware/common.py", line 102, in get_full_path_with_slash
    'url': request.get_host() + new_path,

Issue created from Copilot

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

0 participants