#Django Allowed Hosts Error "Invalid HTTP_HOST header: '0.0.0.0:8000'"

9 messages · Page 1 of 1 (latest)

trail acorn
#

I am getting this error sent to my admin email from the application I deployed on railway.app

Invalid HTTP_HOST header: '0.0.0.0:8000'. You may need to add '0.0.0.0' to ALLOWED_HOSTS

and

Invalid HTTP_HOST header: '35.197.110.103:7010'. You may need to add '35.197.110.103' to ALLOWED_HOSTS

The application works fine with no issues but I randomly get these errors sent to the admin email.

Do I add these to addresses to my allowed hosts? Are these the addresses associated with my railway project?

untold ibexBOT
#

Project ID: 643c9962-5fa0-449c-82e0-67b30f66c552

trail acorn
#

643c9962-5fa0-449c-82e0-67b30f66c552

plush pilot
#

you can add these to the allowed hosts

trail acorn
plush pilot
#

the first one is local address and the second one is a gcp ip

trail acorn
plush pilot
#

that wouldn't be necessary, ideally you would turn off these kinds of notifications

sonic gateBOT
#

New reply sent from Help Station thread:

i am getting some kind of similar issue: Invalid HTTP_HOST header: '
......railway.app
'. You may need to add '
........railway.app
' to ALLOWED_HOSTS. but everything is set correctly and on
localhost
everything works perfect i am out of clues.... its a django app

You're seeing this because this thread has been automatically linked to the Help Station thread.