Skip to content

Troubleshooting

Vitor edited this page Dec 3, 2026 · 1 revision

English · Português

botticelli

Troubleshooting

Status: built (M3b, #4). Covers what is built up to M3b. An index of every message a user can see from the server, the Pinterest source and the Library, taken from src/server/, src/sources/pinterest/ and src/library/ on 2026-12-02. Parts in <angle brackets> change from call to call.

In one minute

A failed tool call comes back with isError set and one message, with no stack trace and no headers. Find the message in the tables below. A message that starts with [botticelli] is written to stderr by the server itself, at start or in the background. Setup problems come first.

Setup problems

The agent does not list botticelli

  1. Run command -v botticelli (where botticelli on Windows). If nothing prints, the install failed or your global npm folder is not on PATH (npm prefix -g). See Install.
  2. Check the entry in your client's settings. The command is botticelli, with no arguments. Each client has its own file and key name (Install).
  3. Restart the client fully. Claude Desktop, Cursor and Windsurf read the file only at start.
  4. Desktop apps may not share your terminal's PATH. Put the full path of botticelli in command.
  5. From a clone, check that npm run build made dist/server/index.js.
  6. Run botticelli in a terminal. A start error prints as [botticelli] <message> (see the first table).

npm EALLOWREMOTE

npm 12 refuses to install a tarball straight from a URL. Download the file first, then install the local file:

curl -fLO https://github.com/vkmtx/botticelli/releases/download/v0.1.0/botticelli-0.1.0.tgz
npm install -g ./botticelli-0.1.0.tgz

The flag --allow-remote=all also works, but a local file is safer and works on npm 10, 11 and 12.

Windows curl

Use PowerShell's own downloader, or save the file from the release page in your browser:

Invoke-WebRequest -UseBasicParsing -Uri https://github.com/vkmtx/botticelli/releases/download/v0.1.0/botticelli-0.1.0.tgz -OutFile botticelli-0.1.0.tgz
npm install -g ./botticelli-0.1.0.tgz

No results or everything filtered

A search that gets no Refs back is not an error. Read dropped in the result: each entry has a reason.

Reason Fix
blocked domain: <domain> The site is on the shop and stock list. Set filters.blockDomains to your own list
min-width: <w> < <min> Lower minWidth, or drop it
orientation: <actual> is not <wanted> Use any, or another orientation
media: <kind>, wanted <media> Set media to any
low-res Set excludeLowRes to false
thumbnail: <error> The image could not be fetched or decoded. See the Images table
repost of <key> The same image already appears in the result

Filters run after Pinterest answers, so a tight filter with a small limit leaves few Refs. Raise limit, pass next as cursor, or loosen the filters. Filters may also come from botticelli.config.json (Configuration).

A ref from search does not work in get or related

Logged-out Pinterest gives search, board and related results no pin id. Their Handles work in look, save and palette. In get and related they fail with "<key>" is not a pin. …. Paste a real pin link (https://www.pinterest.com/pin/<id>/), a pin.it link or the numeric id. After get on a pin, its stable Handle works in related for the session (Tools).

Network errors

Network error reaching <host> means the host cannot be reached. No other endpoint is tried. Check your connection, then set BOTTICELLI_PROXY (or HTTPS_PROXY) if Pinterest is blocked. For slow links raise BOTTICELLI_TIMEOUT_MS (default 20000). See Configuration.

Pinterest changed something

Signs: Pinterest search failed on every known endpoint with the same HTTP status (403 or 404) for each endpoint. botticelli tries every known way to call Pinterest and promotes the one that works. When all fail, Pinterest probably changed. Wait and retry once, then open a "source broken" issue with the message and the date. Do not paste cookies. A learned fix lives in ~/.config/botticelli/endpoints.json. See Resilience.

Start-up messages (stderr)

Message Cause Fix
[botticelli] botticelli.config.json: cannot read (<code>) The file exists but cannot be read (EACCES, EISDIR) Fix its permissions
[botticelli] botticelli.config.json: invalid JSON at line <L>, column <C> The file is not valid JSON Fix the syntax at that place
[botticelli] botticelli.config.json: <key path>: <reason> A value is out of range or the key is unknown. (root) means a top-level key. Examples: filters.minWidth: Too small: expected number to be >0, (root): Unrecognized key: "cookie" Fix or remove the key. Your value is never echoed
[botticelli] startup failed A start error with no message Run botticelli in a terminal and report it

Link: Configuration.

Tool messages

Inputs and handles

Message Cause Fix
#<n> is not in the last result (it has <k> ref[s]) #n is past the last numbered result, or no search ran yet Use a number from the last result, or a stable Handle
<handle> is not a handle from this session A p:xxxx Handle the session never saw (Handles do not survive a restart) Search again, or pass a pin URL
cannot give <source> ref a unique handle A hash collision in one session. Practically never Start a new session
Unknown source "<id>" sources names an unknown Source Use pinterest, or leave sources out
No source supports search / No source is configured The server has no Source for the call Reinstall
MCP error -32602: Input validation error: Invalid arguments for tool <tool>: <reason> at <param> A param is missing, out of range or of the wrong type Fix the param (Tools)
Not a cursor from this source. Pass `next` back unchanged. cursor was edited, or is from another call Pass the next of the same query unchanged
A search needs a query The query is empty (the schema normally stops this earlier) Give a query

Pins, boards and links

Message Cause Fix
"<input>" is not a pin. Pass a numeric pin id, a pinterest.com/pin/<id>/ link or a pin.it short link. The input is not a pin address. Also shown for a search-result Handle with no pin id Pass a pin URL or id
<url> is not a pin. … A board or profile URL Use collection for boards
"<input>" is not a board. Pass https://www.pinterest.com/<user>/<board>/ or <user>/<board>. The input to collection is not a board Pass the board URL
pinterest cannot get: this id (e1_…) comes from a logged-out search and is anonymous, so Pinterest cannot look it up again. Use a pin link or the numeric pin id An e1_… id or /pin/e1_…/ URL (related says cannot related) Use a real pin link
The short link <url> did not lead to a pin A dead pin.it link, or one that ends on a board Use the pin URL
The short link <url> must use https A pin.it link with http Use https
The short link <url> redirects to a non-https address The redirect left https Use the pin URL
The short link <url> redirects away from Pinterest (to <host>) The link points to another site Use the pin URL
Pinterest pin failed on every known endpoint: PinResource: Pin not found. No such pin (deleted or wrong id) Check the link
Pinterest board_info failed on every known endpoint: BoardResource: Board not found. The board does not exist or is private Check the URL. Private boards need a login (planned)

Pinterest answers

Message Cause Fix
Pinterest <capability> failed on every known endpoint: <Resource>: <reason> Every way to call Pinterest failed. <reason> is Pinterest's own message or HTTP <status>. With a cursor it reads on the endpoint that issued the cursor Retry. If all show 403 or 404, see Pinterest changed something
Pinterest <capability>: no endpoint is registered The bundled endpoint table has no entry for that call (a build or packaging problem) Reinstall botticelli. If it persists, open a source-broken issue
<Resource>: answered with a non-JSON body / …: the answer has no resource_response Pinterest sent a page, not data. Often a block or a change Retry later, then report
PinResource: the answer holds no pin / BoardResource: the answer holds no board The answer had the wrong shape Check the link, then report
Network error reaching <host>: <detail> DNS, TCP, TLS or timeout. Details include no response within <ms> ms, no data for <ms> ms while reading the body See Network errors

Link: Resilience, Sources.

Images

These appear in look, palette and save results, and in dropped as thumbnail: <message>.

Message Cause Fix
<url> is not an https pinimg.com URL. Only the Pinterest CDN is allowed. A URL on another host, or http Use a pin URL or an i.pinimg.com link
"<input>" is not a URL Not a URL Check the input
<url> answered HTTP <status> The CDN has no such file (a made-up path gives 403) Check the URL
<url> answered with <type>, not an image The CDN sent a page, not a picture Retry, or use another size
<url> is over the <n> MB limit A file over 30 MB (images) Pick another Ref
Unsupported image type "<mime>": only JPEG and PNG are decoded locally The thumbnail was another format Report it with the URL
Not a valid PNG: …, Refusing PNG with …, Refusing interlaced PNG: … A damaged or unsafe PNG Skip the Ref
Image is <w>×<h>; refusing to decode anything over 4096×4096 An image too big to decode safely Skip the Ref

Library

Message Cause Fix
Board name "<name>" leaves nothing usable for a folder name The name has no letters or digits Pick another name
Path <path> is outside the library (<root>) The Board folder resolves outside the Library, for example through a symlink Use a folder inside the Library
Path <root> is outside the library: the default Library folder is a symlink. Set "library" in botticelli.config.json to use a symlinked folder on purpose refs/ is a symlink and library is unset Set library, or remove the symlink
Path <path> goes through a broken symlink A dangling symlink on the path Remove it
Cannot save "<mime>": not a supported image or video type The download was not an image (jpg, png, gif, webp, mp4) Check the URL
Image is <n> bytes, over the <max> byte limit A file over 30 MB Pick another Ref
<root>/index.json is not valid JSON; fix or delete it before saving more refs The index was edited into something broken Fix it, or delete it. Deleting forgets the Board list, not the files
<root>/index.json has an unexpected shape; fix or delete it before saving more refs The index is JSON but not an index Same
Board "<name>" has no saved refs moodboard on an unknown or empty Board Use the name you gave save
<path> is a directory A folder sits where moodboard.html goes Rename the folder

Link: Library and moodboards.

Background messages (stderr)

Message Meaning
[botticelli] cache: <what>: <reason> A cache write or prune failed. The call still works
[botticelli] could not save endpoint registry to <file>: <reason> A learned endpoint could not be saved. Check the folder's permissions

Still stuck

Open an issue with the message and the date. Never paste cookies. A vulnerability goes to a private Security Advisory (SECURITY.md). More answers: FAQ.

Clone this wiki locally