Skip to content

The data source sent a response that could not be read

Type
https://pyeconomics.dev/problems/upstream-invalid-response
HTTP status
502
Exit code
7 (data unavailable)
Raised as
ResponseError

What it means

The data source answered with something that could not be read, or that did not match the request.

What to do

Try again later. A source that keeps answering this way may have changed its format: report it as an issue on GitHub.

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.