Troubleshooting custom connectors
Find what you’re seeing below, then follow the fix. Most setup errors also have a Show raw error link with the exact details.
Sign-in fails with an issuer error
The first sign-in ends with “Connection failed” or “Connector link failed”, and the details
mention "iss". The service says it is a different sign-in provider than the one saved on the
connector, so Context stops. For Microsoft, this almost always means Tenant ID or domain holds
a domain instead of the tenant ID.
Fix. For Microsoft, open Edit config → Authentication, replace the value with the Directory (tenant) ID from the app’s Overview page, save, and sign in again. For other providers, check that the issuer on the connector matches the provider’s exactly, including any trailing slash. For a custom Okta server, use Other OIDC instead of Okta.
People are signed out every hour
People connect fine, but about an hour later the chat shows <name> needs to be
reconnected, every time. The provider isn’t allowing Context to renew the sign-in.
Fix. Add the offline_access scope (Microsoft, Okta and most others; in Microsoft Entra also
add it under API permissions and grant consent). For Google, add access_type = offline
and prompt = consent under Advanced → Extra authorize parameters. Then everyone reconnects
once.
“Needs to be reconnected”
The chat shows <name> needs to be reconnected. The person’s sign-in ended: their password
changed, their account or session was ended, or the service’s time limit ran out.
Fix. The person clicks Reconnect and signs in again. If everyone is signed out at once, check whether the client secret expired, and paste a new one in Edit config → Authentication.
A tool fails with 401 or 403
The connector is connected, but a tool call fails with HTTP 401 or HTTP 403, or “token
rejected by MCP server”. The service itself refused the request.
Fix for 401. For an API key, check the key is still valid and that Prefix ends with a
space (Bearer ). For a sign-in, add the service’s own scope (for Microsoft, one connector per
service, each with its own scope), save, and have people reconnect.
Fix for 403. The person signed in, but their account isn’t allowed to do that in the service. Give them access there, or for Microsoft, add the missing permission and grant admin consent. For Notion’s regular API, share the page with the integration.
Microsoft sign-in errors
Microsoft shows these codes on its own sign-in page.
| Code | Fix |
|---|---|
AADSTS50011 | Add a Web redirect URI to the app: exactly your Context address followed by /api/auth/connector-oauth/callback. |
AADSTS65001 | Under API permissions, click Grant admin consent. |
AADSTS700016 | Check the client ID and tenant ID. For Azure DevOps, see Register the app in Entra. |
AADSTS7000215 | You pasted the Secret ID. Create a new secret and paste its Value. |
AADSTS7000222 | The secret expired. Paste a new one in Edit config → Authentication. |
AADSTS50105 | Assign the person to the app in Entra, or turn off Assignment required. |
AADSTS53003 | A Conditional Access policy blocked the sign-in. Check the Entra sign-in logs. |
AADSTS90072 or AADSTS50020 | The account is from another tenant. Sign in with a work account, or invite the person as a guest. |
Other errors
| What you see | Fix |
|---|---|
| “Popup blocked. Allow popups for this site and retry.” | Allow popups for your Context address, then click Connect again. |
| Needs setup or “Setup isn’t finished” | The admin who added the connector opens it, clicks Set up, and signs in once. |
“<name> isn’t fully set up yet” | An admin opens Edit config → Authentication and saves the client ID and secret. |
| “Only admins can register connectors” | Ask one of the admins named in the tip. |
state not_found_or_expired | The sign-in took over 10 minutes. Close the window and click Connect again. |
IdP error: access_denied | The person cancelled, or a policy refused the app. Try again, then check the app’s consent settings. |
Token exchange failed with status 400 or 401 | Check the client ID and client secret against the provider’s app. |
| “Per-tool permissions require the next authorization mode.” | Your deployment can’t block single tools yet. See Known limits. |
| An error when pasting a service’s address into an MCP server | See Connect an MCP server by URL. |
| An Azure DevOps server’s sign-in can’t be set up automatically | It can’t be connected that way. Follow Azure DevOps. |
Address and import errors
| What you see | Fix |
|---|---|
“<label> resolved to non-public address <ip>” | Private addresses are blocked by default. See Reach services on your private network. |
“<label> resolved to forbidden address <ip>” or “…must not target localhost” | These addresses are never allowed. Use the service’s real address. |
“OpenAPI fetch returned HTTP <n>” | Use a direct https:// link to the file itself. Redirects aren’t followed. |
| “Only OpenAPI 3.0 and 3.1 documents can be imported” | Convert the file to OpenAPI 3 first. |
Fixed header errors
These appear when you save Edit as YAML (see Fixed headers).
| What you see | Fix |
|---|---|
| ”… is a credential or transport header …” | That header is set by the sign-in. Remove it, and put keys under Sign-in. |
| ”… is not a valid header name” | Copy the exact name from the service’s docs. |
| ”… appears twice (header names ignore case)” | Keep one. |
| “The value of … contains a line break” | Put the value on one line. |
| “At most 32 fixed headers” | Remove the ones the service doesn’t need. |
requestHeaders refused as an unknown field | Your release doesn’t have fixed headers yet. See Older releases. |