Throttle Builder Troubleshooting
Find the symptom, read why it happens and follow the steps. The first part is every entry of the Troubleshooting list on the Keys and AI agents screen; the second covers common problems in
the store itself.
Common errors
PERMISSION_REQUIRED
The key or connection has too low a level for the call. The answer names what is missing: level:publish, level:full or draft. Raise its level under Keys or Hosted assistants; it applies on the next call. See access levels and the full entry below.
Stale baseRev (DRAFT_CONFLICT)
The draft changed after the draftRev the agent wrote against, because you or another agent edited it. Nothing was saved. Ask the agent to read the page
again and redo the change. When publishing, ask for a new preview and look at it first. In the editor the same thing shows as the banner with Keep mine and Reload their version. See baseRev.
Validation errors
DOCUMENT_INVALID means a change would break a placement rule or a setting value. Nothing was saved, and the answer lists each issue with its path and message. Ask the agent to
fix those and try again, and to run validate_page before publishing. PUBLISH_BLOCKED lists what would break the live store.
A component newer than the @usethrottle/storefront-react installed in your store cannot be drawn there. Update the package (and keep @usethrottle/builder-react on 0.5 and @usethrottle/builder-schema on 0.4). See Builder for developers.
Changes are not showing on the store
- Check that you published, not only saved. The top bar should not say Unpublished changes.
- In Build-time delivery a publish waits for Release. See Publishing.
- In Live delivery your store learns of a publish through a signed webhook and a cache check, so the page refreshes within moments. If the webhook is not set up or your host cannot receive it, a page can stay cached for up to an hour.
- Reload with the cache bypassed once. If one page stays stale, publish it again.
A preview link has expired
Preview links run out: a person's link after 1 hour, an agent's draft link after 12 hours and the store preview link after 1 hour. Make a new one with Preview link, or ask the
agent for fresh ones with get_preview_url.
Code does not run on the cart, checkout or account
That is on purpose. Scripts never run on cart, checkout, account, sign-in, sign-up or order-complete pages, whatever you set. The markup and CSS still show. If code does not run elsewhere,
check that Allow code widgets on this store is on in Site settings, that you published the page, and that you are looking at the store preview link, not the editor preview. See code components.
Catalog components show placeholders
Product grids, collections and similar components need your Product Catalog. With no catalog key linked, they show a placeholder in the editor and the preview ("Connect your catalog key in Site settings,
Connections"). Open Connections, check that Product Catalog says Installed and link the catalog server key (a pc_pk_ key made with the server channel). See also the menu entry below.
The Troubleshooting list on the Keys and AI agents screen
These are all 18 entries, in the same order and words as the screen. On the screen, #/keys?help=<id> opens one.
401 or "Authentication failed"
Code: 401
Why: The key was revoked, was mistyped or was cut short when copied, or the header is not exactly Authorization: Bearer tb_sk_... (the word Bearer, one space, then the key). Keys do not expire.
Fix:
- Use Test connection with the key.
- If it fails, create a new key (a key is shown once), put it in your tool and revoke the old one.
- A signed-in assistant that gets 401 was revoked or timed out: connect it again.
403 PERMISSION_REQUIRED
Code: PERMISSION_REQUIRED
Why: The key or connection has a level too low for that call. The answer names what is missing (level:publish, level:full or code), and a tool the level does not allow is not even listed.
Fix:
- Raise its level in Keys or Hosted assistants below. It applies on the very next call.
- level:publish needs Publish. level:full needs Full.
- code: Draft and above may write custom code components, so raise a Read key to Draft.
- Only the workspace owner or the person who installed Throttle Builder can grant Full.
429, rate limited
Code: 429
Why: More than 120 calls, or 60 changes, in a minute on one key.
Fix:
- Wait a few seconds (the answer says how long) and ask again.
- Ask the agent to do fewer, larger edits.
Publish refused: there is no publish tool
Code: No publish tool
Why: The key or connection is at Read or Draft. Only Publish and Full can publish; a key from before levels also needs Allow publishing.
Fix:
- Raise its level to Publish, or publish yourself in the Builder.
Publish refused: PUBLISH_BLOCKED
Code: PUBLISH_BLOCKED
Why: The page has problems that would break the live store. The answer lists each issue.
Fix:
- Ask the agent to fix the issues listed.
- Preview again, then publish.
Publish refused: DRAFT_CONFLICT
Code: DRAFT_CONFLICT
Why: The draft changed after the preview the agent was given (you or another agent edited it). In the Builder the same thing shows as a banner with Keep mine and Reload their version.
Fix:
- Ask for a new preview and look at it.
- Publish again with the new revision. Nothing you have not looked at goes live.
Publish refused: SAVED_SECTION_UNPUBLISHED
Code: SAVED_SECTION_UNPUBLISHED
Why: The page uses a saved section that has never been published, so the live store would have nothing to show.
Fix:
- Publish the saved section first (this needs Full).
- Then publish the page.
A page deletion, saved section or release is refused
Code: Needs Full
Why: Publish never publishes page deletions, saved sections or releases. Only Full does.
Fix:
- Raise the level to Full (owner or installer), or publish that deletion yourself in the Builder.
VS Code on macOS gets 401 with THROTTLE_BUILDER_KEY set
Code: VS Code 401
Why: VS Code opened from the Dock does not see variables exported in your shell, so ${THROTTLE_BUILDER_KEY} in .mcp.json is empty.
Fix:
- Start VS Code from a terminal where the variable is set (code .), or set the variable for GUI apps.
- Restart VS Code.
export THROTTLE_BUILDER_KEY=tb_sk_PASTE_YOUR_KEY && code .
claude.ai says it "couldn't connect"
Code: claude.ai
Why: A new connection can take up to 5 minutes to be recognised, or the sign-in was cancelled part way. claude.ai cannot send a key: it signs in to Throttle.
Fix:
- Wait 5 minutes after setup and reconnect.
- Paste the address only, leave Advanced settings empty, and approve on the Throttle page.
- If it still fails, remove the connector, add it again, and check that Throttle Builder is installed on the application you chose.
https://builder.usethrottle.dev/mcp
The agent says CODE_WIDGETS_OFF when it makes a code component
Code: CODE_WIDGETS_OFF
Why: Code components are on by default, so a person turned them off for this store. While they are off no key can save or run one. Only a person can change that switch: an agent never can.
Fix:
- Tell the agent to stop. Trying again changes nothing.
- Someone with the Admin role opens Throttle Builder, Code, and turns code components back on.
- Ask the agent to try again.
Publish refused: TEMPLATE_MISSING_REQUIRED
Code: TEMPLATE_MISSING_REQUIRED
Why: Each template must hold exactly one component of its own kind: the product template a product buy box, shop, collection, category, tag and search the listing grid, the cart the cart lines, and the account, sign-in, sign-up, verify and order-complete templates theirs. This one has none, so the live page would not work.
Fix:
- Read the issue: it names the component the template needs.
- Add that component to the template in the editor, or ask the agent to add it.
- Run validate_page until the issue is gone, then publish. TEMPLATE_DUPLICATE_REQUIRED is the opposite: there are two, so remove one.
A preview link shows a login page
Code: Login page
Why: The draft link (draftUrl) needs no sign-in, so a login page means you opened the store preview link (storePreviewUrl) and the store itself is protected, for example a Vercel preview with Deployment Protection on. The Builder cannot change that.
Fix:
- To check layout at 390, 768 and 1280 px, open draftUrl. It is read-only, needs no sign-in and lasts 12 hours.
- To see code components run, sign in to the host that protects the store (for a Vercel preview, sign in to Vercel or ask its owner for access), then open storePreviewUrl.
- Links run out (the store preview link after 1 hour): ask the agent for fresh ones with get_preview_url.
The claude.ai connector asks to sign in again
Code: claude.ai
Why: claude.ai signs in to Throttle instead of using a key. It asks again when the connection was revoked here under Hosted assistants, when the address it holds is not exactly the Builder address, or when its sign-in with Throttle ended.
Fix:
- Look under Hosted assistants. If claude.ai is not listed, it was revoked.
- Check the connector address is exactly the one below, with nothing added.
- Sign in and approve again on the Throttle page: pick the same workspace, application and environment, and choose its level.
https://builder.usethrottle.dev/mcp
401 after rotating a key
Code: 401
Why: A key cannot be changed or read back, so rotating one means creating a new key and revoking the old one. A tool that still holds the old key is refused from its next call.
Fix:
- Create the new key under Keys and copy it from the dialog (it is shown once).
- Replace the old key in every tool that used it. In Claude Code, remove the old setup first, then add it again with the new key.
- Restart the tool: Cursor and VS Code read their settings when they start.
- Run Test connection with the new key, then revoke the old one.
claude mcp remove throttle-builder
ORIGIN_NOT_ALLOWED: the store origin is not allowed for the publishable key
Code: ORIGIN_NOT_ALLOWED
Why: A publishable browser key works only from the websites listed on it, matched exactly on scheme, host and port (https://shop.example.com, no path). The store was opened from another address, such as a www or preview domain. A server key refuses a browser the other way round (SERVER_KEY_IN_BROWSER).
Fix:
- Find the exact address the store runs on, such as https://shop.example.com, with no path and no trailing slash.
- Create a publishable key under Keys with that address in Allowed websites. List every address the store uses, one per line, www and preview domains too.
- Put the new key in the store and revoke the old one.
The contact form picker says Builder needs an update
Code: Builder update
Why: The contact form lists and creates your Throttle site forms, which needs a permission (forms:write) that only the newer Builder version asks for. Your install is still on the older version: a new version has to be approved by Throttle staff, and an install moves to it only when it is upgraded.
Fix:
- In the Throttle dashboard, open Extensions, then Throttle Builder, and upgrade it to the newest version. It asks you to approve the new Forms permission.
- Reload the Builder and open the contact form again.
- If no upgrade is offered, the new version is still waiting for approval: try again later.