Skip to content

The agent service did not respond

What the agent_provider_error error from the Perafly API means and what to do about it.

On this page
Code
agent_provider_error
HTTP status
502

What it means

The built-in agent session can't take this request in its current state.

What to do

Read the session (perafly agent ls, GET /v1/agent/sessions/{id}) and do what its status asks first: answer a pending tool approval, raise the budget or start a new session.

Read more: Built-in agent

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/agent_provider_error",
  "title": "The agent service did not respond",
  "status": 502,
  "code": "agent_provider_error",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes