Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/05_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ def main() -> None:
print(f"job missing or foreign: {exc.problem and exc.problem.detail}")
case "unauthenticated":
print("bad API key — check ZENROWS_API_KEY")
case "subscription_inactive":
# The key is valid; the subscription is past due, unpaid,
# incomplete or paused. Re-entering the key won't help.
print(
"subscription not active — fix it at app.zenrows.com/billing"
" (or in Azure Marketplace if you subscribed there)"
)
case "payment_required":
print("out of credits — top up at zenrows.com")
case _:
Expand Down
Loading