Skip to content

This server does not answer for that host

Type
https://pyeconomics.dev/problems/host-not-allowed
HTTP status
400
Exit code
1 (internal error)
Raised as
HostNotAllowedError

What it means

A local server answers only requests addressed to a loopback name, so a web page that points its own domain at 127.0.0.1 cannot read its answers.

What to do

Address the server as 127.0.0.1 or localhost, or start it with --allow-remote if you mean to serve other machines.

Every pyeconomics surface reports a failure as a problem in the form of RFC 9457: its type, title, HTTP status and detail, and the exit code the command line returns. A problem never holds a key, a file path, a host or an upstream URL. Every problem type.