---
title: "Request aborted (request-aborted)"
description: "PubNio request-aborted problem, HTTP 499: The MCP request was cancelled while an execute script was still calling codemode.request()."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Request aborted (request-aborted)

HTTP 499 Request aborted. The MCP request was cancelled while an `execute` script was still calling `codemode.request()`.

## When it happens

Only `codemode.request()` in the MCP `execute` tool returns it, as `data` with `ok: false`.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/request-aborted/",
  "status": 499,
  "title": "Request aborted",
  "detail": "The MCP request was cancelled.",
  "code": "request_aborted",
  "nextAction": "Retry the operation if it is still needed.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field        | Type   | Always present |
| ------------ | ------ | -------------- |
| `param`      | string | No             |
| `nextAction` | string | Yes            |

## Recovery for agents

- Do what `nextAction` says.
- `param` is the field to change.

## Retryable

Yes, if the work is still needed: run the `execute` call again. No SDK runs in the sandbox to do it for you.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [MCP Code Mode sandbox problems](https://pubnio.com/docs/problems/#mcp-code-mode-sandbox)
- [MCP server](https://pubnio.com/docs/mcp/)

Source: https://pubnio.com/docs/problems/request-aborted/index.mdx
