Troubleshooting
The server answers 404
Section titled “The server answers 404”Every path answers 404 with {"error":"not_found"} until all of these hold. Check, in order:
- The URL. It is
https://<tenant>.edgekit.ai/mcp. A path under/edgekit/on your own domain, forwarded to the tenant host by your CDN or server, never reaches the MCP server. - The host picks the site. Your tenant host serves the site whose domain is the tenant host without its first
label, or that name with
www.. Failing that, it serves your only active site. With two active sites and no match, it serves none, and your other sites have no server there. See The server’s URL. - The site is active and deployed. A new site, or one set back to
active, needs a deploy. - Both features run on the site in your newest deployment.
mcp_accessandmcp_contentmust both be in the deployment, and both must run on the site: on every site when no site is picked, or on a list that names it. A feature marked not in next deploy in Revenue › Decision Engine › Features is left out: open it, select Include in deploy, then deploy. - An embedding model is deployed. Content › Configuration › AI Answers shows it. A model EdgeKit set after your last deploy is not live yet.
- Users can sign in. EdgeKit sign-in is on for the site:
edgekit_only, ordualwith EdgeKit sign-in turned on. Or the site reads your own login, atexternal_onlyordual, through a token your login signs or a session endpoint EdgeKit asks, in your newest deployment. See Choose who signs users in and Sign-in through your own login. - EdgeKit has finished connecting your organization to the AI models. Choosing a model alone is not enough. If every other check holds, ask EdgeKit.
The server answers 503 temporarily_unavailable
Section titled “The server answers 503 temporarily_unavailable”EdgeKit could not read what the server needs to answer, such as your deployment or your meters, or could not check a sign-in rate limit. Nothing was changed. Try again. If it persists, contact EdgeKit.
Users must reconnect after a site’s domain changed
Section titled “Users must reconnect after a site’s domain changed”A token belongs to the site it was issued on, not only to its URL. When a URL starts serving another site, for example after a site’s domain changes, every token issued there before is refused:
- a tool call answers
401, witherror="invalid_token"in itsWWW-Authenticateheader; - the assistant’s attempt to renew answers
400 invalid_grant,This code or refresh token was issued for another site.
Users reconnect in their assistant, sign in and allow again. They then get the site the URL serves now. When a site’s server moves to a new URL, users change their connector to the new URL and sign in again.
What each HTTP refusal means
Section titled “What each HTTP refusal means”The sign-in routes answer OAuth’s { "error", "error_description" }.
| Status | Code | Message | Cause |
|---|---|---|---|
400 |
invalid_target |
resource must be https://<tenant>.edgekit.ai/mcp |
The assistant asked for a token for another URL than this server’s, or for none. Check the connector holds the server’s URL exactly |
400 |
invalid_grant |
This code or refresh token was issued for another site. |
The URL now serves another site. See above |
400 |
invalid_redirect_uri |
Redirect URIs must be https, or http on a loopback host. |
The assistant registered a return address that is neither https nor http on localhost, 127.0.0.1 or [::1] |
400 |
invalid_request |
prompt=none and max_age are not supported. |
The assistant asked to sign in silently, which the server does not support |
400 |
invalid_request |
Wrong content type, or an oauth_query this endpoint does not accept. |
A request body of another type than the route reads |
400 |
invalid_request |
Expected a JSON body with an email; a send must be type sign-in. |
A code request that is not the sign-in page’s own |
404 |
not_found |
None | The server is not on. See The server answers 404 |
413 |
request_too_large |
Request body too large. |
A sign-in request over 64 KiB |
429 |
too_many_requests |
None | A sign-in rate limit. Wait the Retry-After of 60 seconds. See Sign-in is refused with 429 |
500 |
server_error |
None | EdgeKit failed on the request. Try again; if it persists, contact EdgeKit |
503 |
temporarily_unavailable |
None | See The server answers 503 |
A tool call without a valid token answers 401 with a JSON-RPC error, {"code": -32000, "message": "Unauthorized"},
and a WWW-Authenticate header naming the server’s resource metadata. That answer is what starts an assistant’s
sign-in. A token is not valid when it expired, was issued by another site’s server, or belongs to an erased user.
Sign-in is refused with 429
Section titled “Sign-in is refused with 429”On the sign-in page, a code limit shows as Something went wrong. Try again. A registration limit shows as an error
in the assistant. The limits:
- From one IP address: 10 assistant registrations a minute, 10 code requests and code entries a minute together, and 10 sign-in page loads that carry your login’s cookie a minute. An assistant usually registers from its own servers, so many users connecting through one assistant in the same minute share its limit.
- To one address: the sign-in limits of your site’s own sign-in, counted together with it: 3 sign-in emails a minute, and 3 code attempts a minute. See Limits.
Each limit resets within a minute.
The sign-in email never arrives
Section titled “The sign-in email never arrives”The code is sent under your organization’s transactional mail settings, as your site’s own sign-in emails are, with
the subject Your sign-in code. See The sign-in email never arrives.
“Something went wrong. Start again from your assistant.”
Section titled ““Something went wrong. Start again from your assistant.””The sign-in or consent page was opened without the request the assistant started, or the request no longer verifies. A request lasts 30 minutes from the moment the assistant opens the sign-in page. Start the connection again from the assistant.
A user cannot sign in through your login
Section titled “A user cannot sign in through your login”Where your own login signs users in, the sign-in page shows one of these, each titled Sign in · <site name> and
headed We couldn't sign you in to <site name>. Each failed check is logged for EdgeKit with its reason and never
the credential.
| The page says | Cause | What to do |
|---|---|---|
Start again from your assistant. |
The user came back from your login still without a valid login, no login page URL is set, more than 30 minutes passed, or the page was opened alone | The user starts again from the assistant. If it repeats after a login, check the cookie below |
The login at <site name> did not answer. Wait a moment, then try again. |
Your session endpoint could not be reached or was limiting EdgeKit. See Asking your login who is signed in | The user waits, then selects Try again |
Something went wrong on our side. Wait a moment, then try again. |
EdgeKit could not finish the sign-in, for example a brief database fault. Logged for EdgeKit as an error | The user waits, then selects Try again |
Verify your email at <site name>, then try again. |
A user already holds the address, and your login did not say it is verified. Recorded as identity.adoption_refused |
The user verifies the address at your login, then selects Try again within 30 minutes. See From credential to user |
The page never sends a user to your login twice in one sign-in, so a cookie that never arrives shows as the first row. Check, in order:
- Your login page’s URL is set, as an absolute
httpsURL. - Your login allows the return URL and sends the browser back to it after a login. See The return URL your login must allow.
- The cookie reaches the server’s host. A cookie set only on
www.example.comnever reachesedgekit.example.com. - Its name is on your list. The sign-in page checks your login only when the browser sends a cookie whose name EdgeKit has, with a session endpoint too.
- Your login accepts it. An expired token, a token for another site’s
aud, or a session endpoint answering401counts as no login.
identity.adoption_refused shows in Identity › Audience › Observability.
What each tool message means
Section titled “What each tool message means”| Message | What to check |
|---|---|
You do not have access to this server. |
mcp_access returned an outcome that does not allow. Check its canvases, and that its outcome for these users is Opens the article |
Too many requests; try again in a minute. |
The user made over 30 calls in a minute, or your users together over 600 |
No content item with that id. |
The id is not a published item on this site, mcp_content dropped it for this user, or it could not be decided |
This server is unavailable right now. |
The AI models could not answer a search, a search ran over 5 seconds, or the server failed. fetch keeps working when only the models are down |
See What the assistant is told.
Search does not find an item
Section titled “Search does not find an item”Check, in order:
- It is published and on this site. The item’s screen in Content › Content › Items shows its
status, and its Sites tab says
Not on any site.when your CMS places it on none of yours. - Your archive is embedded. Search finds only items embedded with the deployed embedding model. Items synced before the model was deployed are found once they sync again. For an Arc XP or WordPress source, select Start full sync on the source’s page, or ask EdgeKit. For a content API source, push the items again. See Before you start.
- Its reveal lets search list it. An item at
metadata, or dropped, is never listed. An item atexcerptis found only by words in its lead, and never when it has no body text. - The filters match.
content_typemust match your CMS’s type exactly. A date alone intois the start of that day, in UTC. - Enough results were asked for. Items dropped for this user still take places among the candidates, so a search
can return fewer results than
limitwhile more items match. A narrower query or a filter finds the rest.
Search lists an item, but fetch answers “No content item with that id.”
Section titled “Search lists an item, but fetch answers “No content item with that id.””fetch decides the item again, and counts on meters. Between the search and the fetch:
- a meter count moved, and your rules now drop the item for this user;
- the count could not be taken, for example because another fetch used the last free read at the same moment, and the item was decided again and dropped;
- the item was unpublished, or your CMS took it off this site.
A user gets the excerpt where they should get the full text
Section titled “A user gets the excerpt where they should get the full text”- The rule names the right site.
grants.site_idsholds site ids such assite_example, not domains. - The grant is live and reaches this site. See Grants.
- The rule order. The first rule whose conditions all hold wins. A rule above the full-text rule can capture the user.
- It is deployed. The server reads your newest deployment.
Stage refuses an mcp_access or mcp_content rule
Section titled “Stage refuses an mcp_access or mcp_content rule”| Message | What to do |
|---|---|
meter "<name>" is a seen-set keyed on "<field>", which this feature never has, so this tick could never be charged. Only mcp_content has item.*, and it has no page or device: give it its own seen-set keyed on item.ref. |
Have mcp_content count on a count meter, and keep your page’s seen-set for your paywall |
meter "<name>" counts per gift link, and mcp_content never has one, so this tick could never be charged. |
Remove the count on the gift_link meter from mcp_content |
"<feature>" names "<field>", and no external credential reaches an MCP decide: an MCP client sends only its bearer token, so "external.*" is empty there on every site, external_only included, and this rule would always read empty. MCP access is grants-derived; read grants instead. |
Read grants.* instead of external.* in that feature |