django warnings by email, error 500

FFaustinho5/23/2023
Why am I receiving warnings in my email from DJANGO that they are trying to connect to my application using an invalid IP in ALLOWED_HOSTS?

It's not always, but today it happened 3 times at different times, and by the time I wasn't even at home. I think the '0.0.0.0:8012' is from the railway because I saw it on https://docs.railway.app/troubleshoot/fixing-common-errors saying that the railway uses host 0.0.0.0, right? but what about the other IP?

This error must be appearing because I configured in allowed_hosts only the URL of my application's railway, but it shouldn't appear, right? Since no one accesses by IP normally, do you know what is happening?

[Django] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: '34.83.172.142:8012'. You may need to add '34.83.172.142' to ALLOWED_HOSTS.

and [Django] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: '0.0.0.0:8012'. You may need to add '0.0.0.0:8012' to ALLOWED_HOSTS.
FFaustinho5/23/2023
6e77dedf-b4e0-4a31-9bcd-5ba603e0016a
Jjackson5/23/2023
likely just bots or crawlers
Jjackson5/23/2023
you can ignore that
FFaustinho5/23/2023
Thanks 😄