Tibber LogoData API

Troubleshooting

Quick symptom-to-fix reference

SymptomLikely causeFix
401 on first API callmissing / malformed Authorization headerAdd Authorization: Bearer <access_token>
401 after some timeexpired access_tokenrefresh using refresh token (or reauth)
400 during token exchangewrong code_verifier (PKCE) or redirect_uri mismatchensure original verifier + exact redirect URI
consent screen repeatsrequesting new scopes each runpersist granted scopes; request only additions
device missingmissing category scopeadd required scope; reauthorize
many 429saggressive polling / no backoffimplement exponential backoff with jitter (see Retry & backoff)
sporadic 5xxtransient upstream issuesretry with limits (see Retry & backoff)
slow responsesoverly frequent large history windowsnarrow time range or paginate

Checklist to exhaust before seeking help

  • Does the redirect URI match exactly (scheme, host, path, trailing slash)?
  • Does the scope list include the needed device category?
  • Are you using full‑jitter backoff for transient errors (see Retry & backoff)?
  • Is User-Agent header present and versioned (see Requirements)?

On this page