Errors
When a call fails, the app gets a class, a code, a message, and whether it is worth trying again. You can ask the app to read that back to you.
What to do#
- If it says you are not signed in, connect again from Connect Claude or create a new key.
- If it says there is no session, the app has to start one first. See Sessions.
- If it says you hit a limit, wait and try again. See Limits.
- If the script failed, the message names the line. Fix the script. Running it again unchanged will fail the same way.
- If the prices could not be loaded, try again later.
- If the message says the service could not be reached, try again later.
If you write to us about a failure, include the trace id. That is enough for us to find it.
| Code | Outcome | Reason | What to do |
|---|---|---|---|
| invalid_args | refused | the request was not valid | Call the same tool again with the argument named in detail fixed: use one of detail.allowed when it is given, and drop any argument detail says is unknown. |
| script_too_long | refused | the script is too long | Shorten the script and call again. |
| limit_minute | refused | too many actions this minute | Wait retry_after seconds, then call the same tool again with the same arguments. |
| limit_day | refused | this account used all its AI connector calls for today | Stop and tell the member. Calls work again after midnight UTC (retry_after seconds). |
| limit_markets | refused | a daily market limit that has since been removed was reached | No action needed: there is no daily market limit any more. Call the tool again. |
| history_read_limit | refused | the daily limit of date-focused chart reads was reached | Call read_chart again without bar, or with bar set to latest, to read the bars on screen. To analyse earlier history, call run_bullscript and compute over it. This chart's date-read budget resets at midnight UTC. |
| limit_scripts | refused | too many script runs this minute | Wait retry_after seconds, then call run_bullscript again with the same arguments. |
| limit_busy | refused | another action was still running | Wait retry_after seconds for your other call to finish, then call the same tool again. |
| limit_response_size | error | the answer was too large | Ask for less (fewer bars or a narrower request). |
| paused | refused | you paused all AI | Stop. Do not continue unless the member resumes AI and asks again. |
| pause_unknown | error | we could not check whether AI is paused | Try again. If it keeps happening, tell the member. |
| auth_revoked | refused | this connection was removed | Stop. The member has to connect again. |
| connector_locked | refused | this account cannot use the connector | Stop and tell the member. |
| feature_locked | refused | that is not included in this account | Stop and tell the member. |
| market_not_found | refused | that market was not found | Call search_markets with query set to the name or ticker, then call this tool again with symbol and venue from one result. |
| spot_not_found | refused | that spot market was not found | Call search_markets with query set to the ticker, then call this tool again with a spot symbol and venue from the results. |
| missing_symbol | refused | no market was named | Call this tool again with symbol set (for example BTCUSDT) and venue (for example BINANCE); use search_markets to find them. |
| market_load_failed | error | the market data did not load | Try again. If it keeps happening, tell the member. |
| market_rate | error | market data was busy | Wait a moment, then call again. |
| prepare_failed | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| hook_unreachable | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| tool_failed | error | something went wrong on our side | Call get_session_activity to see whether it was done, then call the same tool again once if it was not. If it keeps happening, tell the member. |
| script_failed | error | the script did not run | Read error_detail, fix the script and run it again. |
| layout_not_found | refused | that layout was not found | Call list_layouts, then call this tool again with layout set to one of the returned names, or Default for the member's own chart. |
| layout_name_taken | refused | a layout with that name already exists | Call this tool again with a name that is not in list_layouts, or call use_layout with that name to work on the existing one. |
| indicator_not_found | refused | that indicator is not on this chart | Call read_chart for the same layout. Each copy has an id. Call this tool again with id set to one of those ids. |
| indicator_already_present | refused | already on this chart | This code is no longer returned. add_indicator adds another copy and returns its id. |
| indicator_limit | refused | this chart already has as many indicators as this account can have on one chart | Call remove_indicator with the id of one copy, then call add_indicator again. |
| invalid_settings | refused | the settings were not valid | Call list_indicators with name set to this indicator to see the settings it takes, then call this tool again with settings as a JSON object of those names (for example {"length":20}). |
| script_not_found | refused | that script was not found | Call list_scripts, then call this tool again with script set to one of the returned ids. |
| script_compile | error | the script has an error | Fix the code at error_detail.line and error_detail.column, then call run_bullscript again with the corrected code. |
| script_inputs | error | the script's inputs were not valid | Fix the input named in error_detail, then call again. |
| script_runtime | error | the script failed while running | Fix the problem at the bar and line in error_detail, then call again. |
| script_empty | error | the script draws nothing | Add a plot or another output, then call again. |
| engine_internal | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| engine_unavailable | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| engine_output_unreadable | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| data_unavailable | error | the market data did not load | Try again. If it keeps happening, tell the member. |
| data_rate_limited | error | market data was busy | Wait a moment, then call again. |
| volume_unavailable | error | This script uses volume, but this chart has no volume data. | Change Source to a price such as close, or open a symbol that has volume. |
| limit_time | error | the script took too long | Make the script do less work, then call again. |
| limit_memory | error | the script used too much memory | Make the script do less work, then call again. |
| limit_output | error | the script's output was too large | Draw less, then call again. |
| source_missing | error | the script's code is not available | Save the script again, then run it. |
| system_unreachable | error | something went wrong on our side | Try again. If it keeps happening, tell the member. |
| cancelled | error | it was cancelled | Call again if it is still needed. |
| session_required | refused | no session is open for this connection, so this call was not run | Call start_session with goal set to one short sentence, for example "Build an RSI divergence script for BTC/USDT 4H". Then call this tool again with the same arguments. |
| goal_required | refused | the goal was missing, empty, or a placeholder such as "Goal not stated", so no session was started | Call start_session with goal set to one short sentence, for example "Build an RSI divergence script for BTC/USDT 4H". Then call this tool again with the same arguments. |
| session_limit | refused | too many sessions this hour | Keep working in one session; try again later. |
| session_unknown | error | we could not check the session | Try again. If it keeps happening, tell the member. |
| session_cleared | refused | the member ended this session and cleared the activity | If they still want you to work, call start_session with your goal if it is in your tool list, then continue. This would be a new session. |
| session_ended_by_user | refused | the member ended this session | Call start_session with goal set to one short sentence, for example "Build an RSI divergence script for BTC/USDT 4H". Then call this tool again with the same arguments. |
| agent_stopped | refused | you stopped this agent | Stop. Do not continue unless the member resumes this agent and asks again. |
| unknown_tool | refused | that action does not exist | Use one of the tools from the tool list. |
| nothing_to_change | refused | there was nothing to change | Call configure_indicator again with settings set to the values to change, or skip it if nothing needs changing. |
| layout_default_fixed | refused | the Default layout cannot be renamed or deleted | Call list_layouts and use a named layout, or call create_layout to make one. |
| layout_limit | refused | this account has as many layouts as it can keep | Call list_layouts, then use_layout to reuse one, or ask the member before calling delete_layout. |
| script_save_failed | error | the script could not be saved | Try again. If it keeps happening, tell the member. |
| script_name_reserved | refused | that name is reserved for Bullmania | Call this tool again with name set to a different name that does not contain Money Line or Bullmania in any spelling, and tell the member why in user_message's words. |
| script_not_compiled | refused | the newest version has not compiled | Call read_script, fix the errors, call save_script with expected_version set to its version, then call this tool again. |
| username_required | refused | a username is needed first | Tell the member to choose a username, then try again. |
| username_not_found | refused | a username was not found | Call search_usernames for each username named in detail, then call this tool again with the usernames it returns. |
| invite_self | refused | you cannot invite yourself | Invite someone else. |
| invite_limit | refused | that is too many invites | Invite fewer people. |
| invite_only_limit | refused | this account cannot share scripts Invite-only | Tell the member. Only me and Public still work. |
| alert_not_found | refused | that alert was not found | Call list_alerts, then call this tool again with id set to one of the returned ids. |
| alert_invalid | refused | the alert was not valid | Call this tool again with every alert field set (symbol, venue, timeframe, condition, and price for a price condition) and the field named in detail fixed. A webhook link uses the same checks as the alert dialog. |
| webhook_key_exists | refused | a security key already exists | Call get_alert_webhook to confirm. Call rotate_alert_webhook_key with action rotate only when the member asks you to replace it. The existing key is not returned. |
| webhook_unavailable | error | the webhook could not be read or saved | Try again. Nothing was changed. If it keeps happening, tell the member. |
| webhook_rate | refused | too many alert changes this minute | Wait a minute, then call this tool again. |
| watchlist_not_found | refused | that market is not on Watching | Call get_watchlist, then call this tool again with id set to one of the returned ids. |
| watchlist_invalid | refused | that watchlist change was not valid | Call get_watchlist, then call this tool again with the field named in detail fixed. Nothing was changed. |
| watchlist_limit | refused | Watching is full | Call remove_from_watchlist for a market the member no longer follows, then call add_to_watchlist again. |
| watchlist_section_not_found | refused | that Watching section was not found | Call get_watchlist and use a name from sections, or omit section. Nothing was added. |
| watchlist_unavailable | error | the watchlist could not be read | Try again. If it keeps happening, tell the member. |
| usernames_unavailable | error | usernames could not be searched | Try again. If it keeps happening, tell the member. |
| internal_error | error | something went wrong on our side | Call get_session_activity to see whether it was done, then call the same tool again once if it was not. If it keeps happening, tell the member. |
| partial_change | error | only part of it was saved | Read partial.not_done, then call the same tool again with the same arguments to finish it. |
| version_conflict | refused | the script changed since you read it | Read the script again, merge your change, and save with expected_version set to current_version. |
| script_saved_not_compiling | error | it was saved but does not compile | Fix the errors at the lines and columns in errors, then save again with expected_version set to version. |
| interrupted | error | it was interrupted and may not have finished | Call get_session_activity (or read_chart) to see whether it was done, then call the tool again only if it was not. |
| drawing_not_found | refused | that drawing was not found on this chart | Call list_drawings for the same chart (the same symbol, venue and layout), then call this tool again with an id it returns. detail.ids lists ids that exist, and detail.id or detail.missing the ids that do not. Nothing was changed. |
| drawing_locked | refused | that drawing is locked | Tell the member the drawing is locked. Only if they asked you to change or delete it, call update_drawing with locked set to false (new points may go in the same call), then call this tool again. detail.locked names the locked drawings. Nothing was changed. |
| drawing_not_editable | refused | that drawing can only be changed on the chart | Tell the member that only they can change this drawing, on the chart. delete_drawing can still remove it if they ask you to. Nothing was changed. |
| drawings_too_large | refused | this chart's drawings are at the size limit | Ask the member which drawings on this chart they no longer need, delete those with delete_drawing, then call this tool again. Nothing was saved. |
| backtest_not_strategy | refused | that script is not a strategy | A backtest needs a BullScript™ strategy: a script that starts with strategy() and trades with strategy.entry, strategy.order or strategy.close. Save one with save_script, then call run_backtest with its id. |
| backtest_declaration | refused | the strategy's settings were not valid | Fix the strategy() line as the error says, save the script with save_script, then call run_backtest again. |
| backtest_market | refused | backtests do not run on that market yet | Backtests run on crypto spot markets and US stocks and ETFs. Call search_markets for a spot or US stock listing, then call run_backtest again with its symbol and venue. |
| backtest_range | refused | the dates hold too few closed bars | Call run_backtest again with from and to further apart, or without both to test the whole history. |
| chart_not_shown | refused | the member is viewing another chart | Call open_chart with the symbol, venue and timeframe you want to show (detail.shows is the chart on screen), then call set_visible_range again. Or omit symbol, venue, timeframe and layout to zoom the chart on screen. |
| range_outside_history | refused | that period is outside the chart's history | Call set_visible_range again with from and to between detail.history_start and detail.history_end. For a period older than a 1H or 4H chart holds, call open_chart with timeframe 1D first. |
| backtest_limit | refused | this account ran as many backtests as it can this hour | Stop and tell the member. Backtests can run again after retry_after seconds. |
| backtest_not_found | refused | that backtest was not found | Call list_backtests, then call get_backtest with id set to one of the returned ids. |