Troubleshooting
By error code
401: authentication failed
- The key was copied incompletely, or has extra spaces or line breaks. Copy it again.
- The API Key was sent with
Authorization: Bearer. Put the API Key in theX-Api-Keyheader;Beareronly accepts tokens issued by the plugin marketplace connector. - The key has expired. Check its status on the Agents page and create a new one if it has expired.
- The variable in the example command wasn't expanded.
'X-Api-Key: $AGENTEARTH_API_KEY'uses single quotes, so the shell doesn't substitute the variable; use double quotes.
402: insufficient balance
Top up and retry. You can check your balance first with the account endpoint or ae account.
403: key disabled or account banned
- The key is disabled. The response says the key has been disabled (JSON-RPC error code
-32004in MCP clients). Enable it again on the Agents page; this also applies to OAuth-authorized apps, with no re-authorization needed. - The account is banned. Contact support.
400: tool not found or bad parameters
- "The requested tool does not exist or is temporarily offline": the tool is offline, or the
tool_urlwas modified (changing any character of itsrecommend_idbreaks it). Recommend again, or get a validtool_urlfrom the tool detail. - "The URL is incomplete: missing ... tool_name": the execute URL has no
tool_name. - "Invalid request body": the body isn't valid JSON, or the parameters aren't inside
params.
405: wrong method
Recommend and execute use POST; list, detail and account use GET.
429: too many requests
Limits are counted per minute, separately for each user and each key. Wait a moment and retry, and limit concurrency for batch calls. ae_get_result for async results doesn't count toward the limit.
502: upstream provider unstable
The provider behind the tool is having temporary trouble. Retry later, or recommend again and switch to a similar tool. Failed calls cost nothing.
The call "succeeded" but the result is wrong
error_no of 0 only means the request reached the tool; it doesn't guarantee you got the data you wanted. Read the text in result first:
- Parameter validation failed: the explanation is in the result text; fix the parameters as it says.
- The upstream source found nothing: try different keywords or a different time range, or switch to a similar tool.
- There are platform annotations (
platform_annotations): the platform may have corrected your parameters or suggested another tool; follow the annotation.
Can't find an async result
{"status": "not_found"}: the task ID is wrong, or the task is more than 24 hours old and has been cleaned up. Submit the task again.- Still in progress: tasks such as video generation can take a few minutes; keep polling. Don't run the original tool again, or you'll be charged twice.
MCP won't connect
- Check that the URL is
https://agentearth.ai/mcp-server/, including the trailing/. - Choose the Streamable HTTP transport (usually
"type": "http"or"streamableHttp"in the config); the older SSE transport isn't supported. - The API Key is checked when the client connects, so a wrong key shows up as a connection failure. See the 401 section above.
- After changing the config, restart the client or reload the MCP server.
Plugin marketplace authorization
- The client suddenly disconnected: the matching "OAuth-authorized app" may have been disabled or deleted on the Agents page. If it was disabled, enable it again; no re-authorization needed. If it was deleted, authorize again in the client.
The agent doesn't use AgentEarth tools
Say "use ae …" explicitly in your message ("ae" is short for AgentEarth), for example "use ae to check Apple's stock price". The agent will then recommend and call tools through AgentEarth.
Still stuck?
Contact us through the Enterprise page or the contact details in the page footer, and include the time of the request, the tool name and the error_msg you received.
