Skip to content

A credential the source needs is missing or refused

Type
https://pyeconomics.dev/problems/credential-unavailable
HTTP status
503
Exit code
7 (data unavailable)
Raised as
CredentialError

What it means

A key the source needs is missing, invalid or refused. The detail names where the key may be set, never the key.

What to do

Set the source's key with pyeconomics keys set, or in its environment variable, and check it has not expired.

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.