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

[TECH] déploiement invalid HTTP_POST #628

Open
vincentporte opened this issue May 21, 2024 · 0 comments
Open

[TECH] déploiement invalid HTTP_POST #628

vincentporte opened this issue May 21, 2024 · 0 comments
Assignees
Labels
hot fix Pull requests that fix a bug to fix as soon as possible python Pull requests that update Python code

Comments

@vincentporte
Copy link
Contributor

ERROR 2024-05-21 09:30:32,353 /home/bas/venv/lib/python3.11/site-packages/django/core/handlers/exception.py : Invalid HTTP_HOST header: '9.9.9.9:8080'. You may need to add '9.9.9.9' to ALLOWED_HOSTS.
Traceback (most recent call last):
  File "/home/bas/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/bas/venv/lib/python3.11/site-packages/sentry_sdk/integrations/django/middleware.py", line 175, in __call__
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/bas/venv/lib/python3.11/site-packages/django/utils/deprecation.py", line 133, in __call__
    response = self.process_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bas/venv/lib/python3.11/site-packages/django/middleware/common.py", line 48, in process_request
    host = request.get_host()
           ^^^^^^^^^^^^^^^^^^
  File "/home/bas/venv/lib/python3.11/site-packages/django/http/request.py", line 151, in get_host
    raise DisallowedHost(msg)
django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '9.9.9.9:8080'. You may need to add '9.9.9.9' to ALLOWED_HOSTS.

sur les emplois : https://github.com/gip-inclusion/les-emplois/blob/7590a23778062967360c35fa4a5051fa53c01843/config/settings/base.py#L283-L289

@vincentporte vincentporte self-assigned this May 21, 2024
@vincentporte vincentporte added hot fix Pull requests that fix a bug to fix as soon as possible python Pull requests that update Python code labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hot fix Pull requests that fix a bug to fix as soon as possible python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant