79380328

Date: 2025-01-23 08:32:45
Score: 4.5
Natty:
Report link

I have the same issue.

But I found Django reported the error, and asked me to add ALLOWED_HOST.


Here is the Django error report:

Starting development server at http://127.0.0.1:8000/

Quit the server with CONTROL-C.

Invalid HTTP_HOST header: 'm-s-2pg2b6emguv9.us-central1-c.c.codatalab-user-runtimes.internal:8007'. You may need to add 'm-s-2pg2b6emguv9.us-central1-c.c.codatalab-user-runtimes.internal' to ALLOWED_HOSTS.


Pay attention to the following: "You may need to add 'm-s-2pg2b6emguv9.us-central1-c.c.codatalab-user-runtimes.internal' to ALLOWED_HOSTS."


when I did this,

ALLOWED_HOSTS = ["colab.research.google.com",'m-s-2pg2b6emguv9.us-central1-c.c.codatalab-user-runtimes.internal']

it works.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: DQ huang