Invalid state
The most common one, shown as a flash message after the provider redirects back.PostQueen generates a one-time CSRF token when you start the connect and stores it against your
session. The provider returns it in the redirect and the two are compared. A mismatch, or a missing
token, produces this.
What causes it
What causes it
- You started the connect in one tab and finished it in another
- You refreshed the provider’s login page mid-flow
- A third-party-cookie blocker dropped the session cookie between the redirect out and back: Brave Shields, Safari ITP, hardened uBlock, Firefox Total Cookie Protection
- You took longer than the session expiry to finish the login
1
Use one fresh browser session
Not a private window, and not two tabs.
2
Whitelist the domain in any privacy extension
app.postqueen.ai, or your own domain, for the length of the connect.3
Start again from Add Channel inside the app
Never bookmark or refresh the provider’s authorize page.
invalid_grant
The code the provider returned was rejected when PostQueen exchanged it for a token.What causes it
What causes it
- The same code was used twice, usually a double-click or a retry
- The code expired. Most providers give you about 60 seconds
- The redirect URI on the provider does not match the one PostQueen sends, character for character. A trailing slash counts
1
Start the connect over
Codes cannot be reused.
2
Compare the redirect URI exactly
Provider console against what PostQueen redirects to. Each provider page lists the exact string.
Failed to fetch / fetch failed on provider connect
Seen on calls likePOST /integrations/provider/:id/connect. The backend tried to reach the
provider’s API and failed at the network level: DNS, TLS, or a refused connection.
What causes it
What causes it
- A self-hosted Mastodon instance the backend cannot reach, through firewall or missing DNS
- The GMB metrics endpoint blocked by egress filtering
- A reverse proxy in front of PostQueen rewriting the outbound request
1
Test reachability from inside the container
2
Check your egress path
See the warning below before you reach for a proxy.
Unsupported file type during connect
TikTok and Instagram upload a profile avatar as part of attaching the channel, and an exotic source format fails.Retry. The second attempt usually succeeds.