@b3os/cli 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -8
- package/assets/b3os-run.py +137 -0
- package/assets/skill/b3os/SKILL.md +111 -0
- package/dist/commands/_agents.d.ts +14 -0
- package/dist/commands/_agents.js +33 -0
- package/dist/commands/_agents.js.map +1 -0
- package/dist/commands/_common.js +6 -2
- package/dist/commands/_common.js.map +1 -1
- package/dist/commands/_context.d.ts +49 -0
- package/dist/commands/_context.js +260 -0
- package/dist/commands/_context.js.map +1 -0
- package/dist/commands/_next.d.ts +39 -0
- package/dist/commands/_next.js +77 -0
- package/dist/commands/_next.js.map +1 -0
- package/dist/commands/agent.d.ts +42 -0
- package/dist/commands/agent.js +218 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/app.d.ts +2 -5
- package/dist/commands/app.js +229 -69
- package/dist/commands/app.js.map +1 -1
- package/dist/commands/auth.d.ts +70 -2
- package/dist/commands/auth.js +308 -33
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/docs.d.ts +54 -0
- package/dist/commands/docs.js +202 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/doctor.d.ts +23 -0
- package/dist/commands/doctor.js +313 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/init.d.ts +38 -1
- package/dist/commands/init.js +259 -60
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/listen.d.ts +30 -0
- package/dist/commands/listen.js +194 -0
- package/dist/commands/listen.js.map +1 -0
- package/dist/commands/manifest.d.ts +13 -1
- package/dist/commands/manifest.js +59 -7
- package/dist/commands/manifest.js.map +1 -1
- package/dist/commands/mcp.d.ts +25 -2
- package/dist/commands/mcp.js +120 -11
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/sandbox.d.ts +35 -6
- package/dist/commands/sandbox.js +208 -9
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/commands/setup.d.ts +39 -0
- package/dist/commands/setup.js +203 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/tool.d.ts +109 -1
- package/dist/commands/tool.js +635 -47
- package/dist/commands/tool.js.map +1 -1
- package/dist/config.d.ts +30 -6
- package/dist/config.js +39 -8
- package/dist/config.js.map +1 -1
- package/dist/ctx.d.ts +5 -45
- package/dist/ctx.js +25 -160
- package/dist/ctx.js.map +1 -1
- package/dist/docs/index.json +1 -0
- package/dist/docs/pages/actions/call.md +300 -0
- package/dist/docs/pages/actions/catalog/airtable.md +737 -0
- package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
- package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
- package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
- package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
- package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
- package/dist/docs/pages/actions/catalog/discord.md +784 -0
- package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
- package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
- package/dist/docs/pages/actions/catalog/github.md +1853 -0
- package/dist/docs/pages/actions/catalog/gmail.md +575 -0
- package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
- package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
- package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
- package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
- package/dist/docs/pages/actions/catalog/http.md +824 -0
- package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
- package/dist/docs/pages/actions/catalog/jira.md +920 -0
- package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
- package/dist/docs/pages/actions/catalog/linear.md +1030 -0
- package/dist/docs/pages/actions/catalog/markets.md +21 -0
- package/dist/docs/pages/actions/catalog/morpho.md +247 -0
- package/dist/docs/pages/actions/catalog/notion.md +1077 -0
- package/dist/docs/pages/actions/catalog/nws.md +485 -0
- package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
- package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
- package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
- package/dist/docs/pages/actions/catalog/resend.md +307 -0
- package/dist/docs/pages/actions/catalog/s3.md +513 -0
- package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
- package/dist/docs/pages/actions/catalog/slack.md +2629 -0
- package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
- package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
- package/dist/docs/pages/actions/catalog.md +46 -0
- package/dist/docs/pages/actions/limits.md +50 -0
- package/dist/docs/pages/actions/model-tools.md +225 -0
- package/dist/docs/pages/actions/packs.md +148 -0
- package/dist/docs/pages/actions/settings.md +69 -0
- package/dist/docs/pages/actions/tools.md +244 -0
- package/dist/docs/pages/actions/triggers.md +149 -0
- package/dist/docs/pages/actions.md +88 -0
- package/dist/docs/pages/compat/anthropic.md +168 -0
- package/dist/docs/pages/compat/e2b.md +194 -0
- package/dist/docs/pages/compat/firecrawl.md +138 -0
- package/dist/docs/pages/compat/openai.md +168 -0
- package/dist/docs/pages/concepts/auth.md +151 -0
- package/dist/docs/pages/concepts/beta.md +55 -0
- package/dist/docs/pages/concepts/glossary.md +71 -0
- package/dist/docs/pages/concepts/ids.md +98 -0
- package/dist/docs/pages/concepts/jobs.md +229 -0
- package/dist/docs/pages/concepts/latency.md +138 -0
- package/dist/docs/pages/concepts/limits.md +191 -0
- package/dist/docs/pages/concepts/stack.md +59 -0
- package/dist/docs/pages/concepts/timing.md +86 -0
- package/dist/docs/pages/concepts/usage.md +110 -0
- package/dist/docs/pages/design/b3os-yaml.md +370 -0
- package/dist/docs/pages/design/deploy-from-github.md +122 -0
- package/dist/docs/pages/design/observability.md +134 -0
- package/dist/docs/pages/errors.md +1824 -0
- package/dist/docs/pages/infer/chat.md +570 -0
- package/dist/docs/pages/infer/limits.md +55 -0
- package/dist/docs/pages/infer/messages.md +185 -0
- package/dist/docs/pages/infer/responses.md +173 -0
- package/dist/docs/pages/infer/settings.md +154 -0
- package/dist/docs/pages/infer/speech.md +323 -0
- package/dist/docs/pages/infer.md +154 -0
- package/dist/docs/pages/introduction.md +162 -0
- package/dist/docs/pages/platform/addresses.md +174 -0
- package/dist/docs/pages/platform/call-log.md +99 -0
- package/dist/docs/pages/platform/custom-domains.md +104 -0
- package/dist/docs/pages/platform/keys.md +79 -0
- package/dist/docs/pages/platform/limits.md +57 -0
- package/dist/docs/pages/platform/members.md +101 -0
- package/dist/docs/pages/platform/requests.md +116 -0
- package/dist/docs/pages/platform/settings.md +129 -0
- package/dist/docs/pages/platform/webhooks.md +68 -0
- package/dist/docs/pages/platform.md +67 -0
- package/dist/docs/pages/quickstart/mcp.md +94 -0
- package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
- package/dist/docs/pages/quickstart/scrape.md +134 -0
- package/dist/docs/pages/quickstart.md +45 -0
- package/dist/docs/pages/render/inspections.md +162 -0
- package/dist/docs/pages/render/limits.md +72 -0
- package/dist/docs/pages/render/screenshots.md +179 -0
- package/dist/docs/pages/render/settings.md +431 -0
- package/dist/docs/pages/render/styles.md +342 -0
- package/dist/docs/pages/render/videos.md +272 -0
- package/dist/docs/pages/render.md +118 -0
- package/dist/docs/pages/routines/callables.md +174 -0
- package/dist/docs/pages/routines/definitions.md +361 -0
- package/dist/docs/pages/routines/limits.md +117 -0
- package/dist/docs/pages/routines/runs.md +328 -0
- package/dist/docs/pages/routines/settings.md +104 -0
- package/dist/docs/pages/routines/triggers.md +339 -0
- package/dist/docs/pages/routines.md +216 -0
- package/dist/docs/pages/sandboxes/agents.md +217 -0
- package/dist/docs/pages/sandboxes/commands.md +272 -0
- package/dist/docs/pages/sandboxes/images.md +166 -0
- package/dist/docs/pages/sandboxes/limits.md +143 -0
- package/dist/docs/pages/sandboxes/ports.md +260 -0
- package/dist/docs/pages/sandboxes/settings.md +358 -0
- package/dist/docs/pages/sandboxes/snapshots.md +423 -0
- package/dist/docs/pages/sandboxes/swarms.md +146 -0
- package/dist/docs/pages/sandboxes/volumes.md +131 -0
- package/dist/docs/pages/sandboxes.md +231 -0
- package/dist/docs/pages/sdks/cli.md +121 -0
- package/dist/docs/pages/sdks/mcp.md +169 -0
- package/dist/docs/pages/sdks/python.md +146 -0
- package/dist/docs/pages/sdks/typescript.md +202 -0
- package/dist/docs/pages/sdks.md +282 -0
- package/dist/docs/pages/settings.md +33 -0
- package/dist/docs/pages/vault/limits.md +46 -0
- package/dist/docs/pages/vault.md +133 -0
- package/dist/docs/pages/vision/agent-browser.md +115 -0
- package/dist/docs/pages/vision/crawl.md +333 -0
- package/dist/docs/pages/vision/extract.md +152 -0
- package/dist/docs/pages/vision/fetcher.md +15 -0
- package/dist/docs/pages/vision/limits.md +79 -0
- package/dist/docs/pages/vision/profiles.md +111 -0
- package/dist/docs/pages/vision/proxy.md +131 -0
- package/dist/docs/pages/vision/scrape.md +356 -0
- package/dist/docs/pages/vision/sessions.md +311 -0
- package/dist/docs/pages/vision/settings.md +656 -0
- package/dist/docs/pages/vision.md +175 -0
- package/dist/errors.d.ts +129 -0
- package/dist/errors.js +326 -0
- package/dist/errors.js.map +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +26 -13
- package/dist/main.js.map +1 -1
- package/dist/manifest/domains.d.ts +50 -0
- package/dist/manifest/domains.js +159 -0
- package/dist/manifest/domains.js.map +1 -0
- package/dist/manifest/link.d.ts +20 -0
- package/dist/manifest/link.js +24 -0
- package/dist/manifest/link.js.map +1 -0
- package/dist/manifest/record.d.ts +1 -1
- package/dist/tool/archive.d.ts +33 -0
- package/dist/tool/archive.js +174 -0
- package/dist/tool/archive.js.map +1 -0
- package/dist/tool/calls.d.ts +46 -0
- package/dist/tool/calls.js +274 -0
- package/dist/tool/calls.js.map +1 -0
- package/dist/tool/checks.d.ts +21 -0
- package/dist/tool/checks.js +145 -0
- package/dist/tool/checks.js.map +1 -0
- package/dist/tool/elf.d.ts +19 -0
- package/dist/tool/elf.js +107 -0
- package/dist/tool/elf.js.map +1 -0
- package/dist/tool/predict.d.ts +8 -0
- package/dist/tool/predict.js +38 -0
- package/dist/tool/predict.js.map +1 -0
- package/dist/tool/ustar.d.ts +5 -0
- package/dist/tool/ustar.js +220 -0
- package/dist/tool/ustar.js.map +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1,1824 @@
|
|
|
1
|
+
# Errors
|
|
2
|
+
|
|
3
|
+
> All 288 B3OS error codes with HTTP status, meaning, retry advice and the Firecrawl mapping, generated from errors.yaml.
|
|
4
|
+
|
|
5
|
+
Source: https://docs.beta.b3os.org/errors.md
|
|
6
|
+
|
|
7
|
+
Every B3OS error has a stable `code`. Native endpoints return it in an RFC 9457 problem with the content type `application/problem+json`:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"type": "https://docs.beta.b3os.org/errors#rate_limited",
|
|
12
|
+
"title": "Rate limited",
|
|
13
|
+
"status": 429,
|
|
14
|
+
"code": "rate_limited",
|
|
15
|
+
"detail": "60 scrapes per minute allowed; retry in 12 seconds",
|
|
16
|
+
"instance": "req_01m5t4yg394wegr3j4y01qb363",
|
|
17
|
+
"retry_after_s": 12,
|
|
18
|
+
"limit": {
|
|
19
|
+
"id": "vision.scrape.rpm",
|
|
20
|
+
"limit": 60,
|
|
21
|
+
"unit": "requests",
|
|
22
|
+
"window_s": 60,
|
|
23
|
+
"current": 60
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`type` links to the code's entry on this page (`https://docs.beta.b3os.org/errors#<code>`). `instance` is the request ID, the same value as the `x-request-id` header; [`GET /v1/requests/{request_id}`](https://docs.beta.b3os.org/platform/requests) returns the request's record. `detail` explains this occurrence and may change between releases, so branch on `code`, never on `detail`.
|
|
29
|
+
|
|
30
|
+
**Retryable** codes can succeed later with the same request: wait `Retry-After` seconds when the header is present. Codes marked not retryable need a change to the request, the account or the object first.
|
|
31
|
+
|
|
32
|
+
Some codes add members to the problem:
|
|
33
|
+
|
|
34
|
+
| Member | Meaning |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `errors` | One item per invalid field: `pointer` (a JSON pointer such as `/url`, or `#query/<name>`, `#path/<name>`, `#header/<name>`) and `detail`. |
|
|
37
|
+
| `reason` | A finer cause, for codes that document one. |
|
|
38
|
+
| `required_scope` | The scope the credential lacks. |
|
|
39
|
+
| `retry_after_s` | The `Retry-After` value, for clients that read only the body. |
|
|
40
|
+
| `limit` | The limit that was hit: `id`, `limit`, `unit`, and `window_s` or `current` when they apply. IDs match `GET /v1/limits`. |
|
|
41
|
+
| `current_status` | The object's status, for state conflicts. |
|
|
42
|
+
| `upstream_status` | The HTTP status an upstream returned. |
|
|
43
|
+
| `step` | The step that failed: a routine step ID, an `act` index or a render path such as `beats/2/do/0`. |
|
|
44
|
+
| `pack_error` | The error a pack's error mapping chose. |
|
|
45
|
+
|
|
46
|
+
Compatibility paths keep their upstream error shapes: `/v1/infer/*` answers in the OpenAI shape with the B3OS code in `error.code`, `/compat/firecrawl/*` answers in the Firecrawl shape listed with each code below, and the device-login endpoints answer in the OAuth shape. See [Errors in the API overview](https://docs.beta.b3os.org/api/overview) for how each surface reports them.
|
|
47
|
+
|
|
48
|
+
## Request shape
|
|
49
|
+
|
|
50
|
+
<h3 id="invalid_request"><code>invalid_request</code></h3>
|
|
51
|
+
|
|
52
|
+
`400` · Invalid request · Not retryable · Members: `errors` · Firecrawl: `400` `BAD_REQUEST` "Bad Request"
|
|
53
|
+
|
|
54
|
+
The request body, query string, path or headers failed validation, or the body is not valid JSON. `errors[]` lists each problem: `pointer` is a JSON pointer into the body (`/url`, `/steps/0/uses`), or `#query/<name>`, `#path/<name>` or `#header/<name>` for parameters (for example `#query/limit`). Fix the request before retrying.
|
|
55
|
+
|
|
56
|
+
<h3 id="invalid_url"><code>invalid_url</code></h3>
|
|
57
|
+
|
|
58
|
+
`400` · Invalid URL · Not retryable · Members: `errors` · Firecrawl: `400` `invalid_url` "Invalid URL"
|
|
59
|
+
|
|
60
|
+
A URL you supplied (a page to scrape, a webhook, an action endpoint) does not parse, is not absolute, or uses a scheme other than `http` or `https`. The `errors[]` pointer names the field.
|
|
61
|
+
|
|
62
|
+
<h3 id="unsupported_media_type"><code>unsupported_media_type</code></h3>
|
|
63
|
+
|
|
64
|
+
`415` · Unsupported media type · Not retryable · Firecrawl: `415` `unsupported_media_type` "Unsupported Media Type"
|
|
65
|
+
|
|
66
|
+
The `Content-Type` is not accepted by this operation. Most operations take `application/json`; file uploads take `application/octet-stream`.
|
|
67
|
+
|
|
68
|
+
<h3 id="not_acceptable"><code>not_acceptable</code></h3>
|
|
69
|
+
|
|
70
|
+
`406` · Not acceptable · Not retryable
|
|
71
|
+
|
|
72
|
+
The `Accept` header asks for a representation this operation cannot produce. Operations that stream accept `text/event-stream`; everything else returns `application/json` unless documented otherwise.
|
|
73
|
+
|
|
74
|
+
<h3 id="payload_too_large"><code>payload_too_large</code></h3>
|
|
75
|
+
|
|
76
|
+
`413` · Payload too large · Not retryable · Firecrawl: `413` `payload_too_large` "Payload Too Large"
|
|
77
|
+
|
|
78
|
+
The request body is larger than this operation accepts (`x-b3os-max-body` in the OpenAPI spec). Send less data per request, or use the file and batch endpoints for bulk data. An operation that takes no body (a ticket, a cancel) accepts an empty one: no body, or `{}`.
|
|
79
|
+
|
|
80
|
+
<h3 id="route_not_found"><code>route_not_found</code></h3>
|
|
81
|
+
|
|
82
|
+
`404` · Route not found · Not retryable · Firecrawl: `404` `route_not_found` "Not Found"
|
|
83
|
+
|
|
84
|
+
No operation exists at this method and path. Check the path against the API reference.
|
|
85
|
+
|
|
86
|
+
<h3 id="feature_not_enabled"><code>feature_not_enabled</code></h3>
|
|
87
|
+
|
|
88
|
+
`404` · Feature not enabled · Not retryable · Firecrawl: `404` `feature_not_enabled` "Not Found"
|
|
89
|
+
|
|
90
|
+
The operation is behind a feature flag (`x-b3os-flag`) that is not enabled for your organization yet. Preview features are enabled per organization; the detail names the flag.
|
|
91
|
+
|
|
92
|
+
<h3 id="flags_unavailable"><code>flags_unavailable</code></h3>
|
|
93
|
+
|
|
94
|
+
`503` · Feature flags unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `flags_unavailable` "Service Unavailable"
|
|
95
|
+
|
|
96
|
+
B3OS could not read whether the operation's feature flag is on for your organization (for the address operations, also whether your organization holds a serving address, which keeps them on), so it did nothing rather than answer `feature_not_enabled` on a guess. Retry after `Retry-After` seconds.
|
|
97
|
+
|
|
98
|
+
<h3 id="method_not_allowed"><code>method_not_allowed</code></h3>
|
|
99
|
+
|
|
100
|
+
`405` · Method not allowed · Not retryable · Firecrawl: `405` `method_not_allowed` "Method Not Allowed"
|
|
101
|
+
|
|
102
|
+
The path exists but does not accept this HTTP method. The `Allow` header lists the methods it accepts.
|
|
103
|
+
|
|
104
|
+
<h3 id="edge_only"><code>edge_only</code></h3>
|
|
105
|
+
|
|
106
|
+
`421` · Served by beta-api.b3os.org · Not retryable
|
|
107
|
+
|
|
108
|
+
This operation is served by beta-api.b3os.org, not by the node you called; call it there with an API key. Inside a B3OS sandbox, `http://127.0.0.1:7700` reaches the node products directly, but account operations (keys, usage, limits, organizations, projects, sign-in, the pack registry) exist only at `https://beta-api.b3os.org`. `dist/routes.json` marks them `served_by: edge`.
|
|
109
|
+
|
|
110
|
+
<h3 id="limit_exceeded"><code>limit_exceeded</code></h3>
|
|
111
|
+
|
|
112
|
+
`422` · Limit exceeded · Not retryable · Members: `limit` · Firecrawl: `422` `limit_exceeded` "Limit exceeded"
|
|
113
|
+
|
|
114
|
+
A parameter asks for more than your plan allows, for example `vcpu: 4` when sandboxes allow 2, or a crawl `limit` above 500. The `limit` member names the limit and its value. Lower the value; `GET /v1/limits` lists every limit that applies to you.
|
|
115
|
+
|
|
116
|
+
<h3 id="option_not_allowed"><code>option_not_allowed</code></h3>
|
|
117
|
+
|
|
118
|
+
`422` · Option not allowed · Not retryable · Members: `option`, `value`, `allowed`, `bound_by`
|
|
119
|
+
|
|
120
|
+
The request or setting asks for an option value that is not allowed: one the node serving it does not allow (`clone_reset: none` on a fork where the node allows only `full`), or one the catalog reserves and this release does not serve (`platform.capture_content: all`). `option` names the option (`sandboxes.clone_reset`), `value` is what you asked for, `allowed` lists the values you may ask for and `bound_by` says what set the bound (`node`, or `catalog` for a reserved value). The value is never replaced by another one: leave the field out to get the default, or ask for an allowed value.
|
|
121
|
+
|
|
122
|
+
<h3 id="idempotency_key_invalid"><code>idempotency_key_invalid</code></h3>
|
|
123
|
+
|
|
124
|
+
`400` · Invalid idempotency key · Not retryable · Firecrawl: `400` `idempotency_key_invalid` "Invalid idempotency key"
|
|
125
|
+
|
|
126
|
+
The `Idempotency-Key` header is empty, longer than 255 characters, or contains characters outside printable ASCII.
|
|
127
|
+
|
|
128
|
+
<h3 id="idempotency_key_conflict"><code>idempotency_key_conflict</code></h3>
|
|
129
|
+
|
|
130
|
+
`409` · Idempotency key conflict · Not retryable · Firecrawl: `409` `idempotency_key_conflict` "Idempotency key already used for a different request"
|
|
131
|
+
|
|
132
|
+
This `Idempotency-Key` was already used in the last 24 hours with a different method, path or body, or by a different API key in the same project. Use a new key for a new request.
|
|
133
|
+
|
|
134
|
+
<h3 id="idempotency_request_in_progress"><code>idempotency_request_in_progress</code></h3>
|
|
135
|
+
|
|
136
|
+
`409` · Request in progress · Retryable · Members: `retry_after_s` · Firecrawl: `409` `idempotency_request_in_progress` "A request with this idempotency key is in progress"
|
|
137
|
+
|
|
138
|
+
A request with this `Idempotency-Key` is still being processed. Retry after `Retry-After` seconds to receive the stored response.
|
|
139
|
+
|
|
140
|
+
<h3 id="idempotency_response_evicted"><code>idempotency_response_evicted</code></h3>
|
|
141
|
+
|
|
142
|
+
`409` · Stored response evicted · Not retryable · Firecrawl: `409` `idempotency_response_evicted` "The stored response for this idempotency key was evicted"
|
|
143
|
+
|
|
144
|
+
The request with this `Idempotency-Key` already ran, but the node dropped its stored response: to make room for other organizations (its idempotency index was full and your organization held more than its share), or, for a command run in a sandbox, when the node restarted (command output is kept in memory only, never on disk; the detail says how the command ended). The request is not run again. Fetch the object it created (list or get it), or send the request with a new key to run it again.
|
|
145
|
+
|
|
146
|
+
<h3 id="idempotency_outcome_unknown"><code>idempotency_outcome_unknown</code></h3>
|
|
147
|
+
|
|
148
|
+
`409` · Outcome unknown · Not retryable · Firecrawl: `409` `idempotency_outcome_unknown` "The request with this idempotency key may have run"
|
|
149
|
+
|
|
150
|
+
A request with this `Idempotency-Key` started, and its answer was not stored: it failed after the work began (for example `502 guest_unreachable` after a command was handed to the sandbox), or it was a stream. The node cannot tell whether it finished, so a retry with the key is not run again. Check its effect (a file the command writes, the object it would create), then send the request with a new key to run it again.
|
|
151
|
+
|
|
152
|
+
<h3 id="conflict"><code>conflict</code></h3>
|
|
153
|
+
|
|
154
|
+
`409` · Conflict · Not retryable · Members: `current_status`
|
|
155
|
+
|
|
156
|
+
The object's current state does not allow this operation. The `current_status` member, when present, shows the state. Fetch the object and reconcile before retrying.
|
|
157
|
+
|
|
158
|
+
<h3 id="resource_not_found"><code>resource_not_found</code></h3>
|
|
159
|
+
|
|
160
|
+
`404` · Not found · Not retryable
|
|
161
|
+
|
|
162
|
+
The object does not exist or belongs to another project. B3OS returns 404 (never 403) for objects outside your project so that IDs do not leak across tenants. Product-specific codes such as `sandbox_not_found` are used where they exist.
|
|
163
|
+
|
|
164
|
+
<h3 id="not_implemented"><code>not_implemented</code></h3>
|
|
165
|
+
|
|
166
|
+
`501` · Not implemented · Not retryable · Firecrawl: `501` `not_implemented` "Not Implemented"
|
|
167
|
+
|
|
168
|
+
The operation is part of the published contract but is not available on this deployment yet (operations marked `x-b3os-stage: stretch`). The detail names the alternative when there is one.
|
|
169
|
+
|
|
170
|
+
## Authentication and authorization
|
|
171
|
+
|
|
172
|
+
<h3 id="unauthorized"><code>unauthorized</code></h3>
|
|
173
|
+
|
|
174
|
+
`401` · Unauthorized · Not retryable · Members: `reason` · Firecrawl: `401` `unauthorized` "Unauthorized"
|
|
175
|
+
|
|
176
|
+
No usable credentials. Send `Authorization: Bearer` with a `b3os_sk_` key, or a `b3os_pat_` token from `b3os login`. Inside a B3OS sandbox, call `http://127.0.0.1:7700` with no key. The `reason` member says what was wrong: `missing`, `malformed` (check you copied all of it), `unknown`, `expired`, `revoked`, `replayed` or `wrong_node` (node tokens only), or `ticket` (a stream ticket that is unknown, older than 30 seconds, already used or bound to another resource).
|
|
177
|
+
|
|
178
|
+
<h3 id="forbidden"><code>forbidden</code></h3>
|
|
179
|
+
|
|
180
|
+
`403` · Forbidden · Not retryable · Members: `reason`, `required_scope` · Firecrawl: `403` `forbidden` "Forbidden"
|
|
181
|
+
|
|
182
|
+
The caller is authenticated but not allowed to do this. The `reason` member says why: `scope` (the key lacks the scope in `required_scope`, for example `sandboxes:write`; create a key with it or grant it to the sandbox in `api.scopes`), `scope_escalation` (a new key, token or sandbox grant asks for scopes or a spend cap beyond the caller's own), `role` (your organization role does not allow it), `session_required` (the operation only accepts a signed-in dashboard session), `csrf` (a cookie-authenticated write without a valid `x-b3os-csrf` header; fetch `GET /v1/auth/session` for a new `csrf_token`), `service_worker` (usercontent.b3os.org does not serve service worker scripts: previews share that origin), `self` (code inside a sandbox tried to change that sandbox's own egress policy; call from outside it), `sandbox` (a sandbox's own credential tried to hold or release a sandbox lease; call with an API key), `sandbox_only` (an operation only code inside a sandbox may call, such as `POST /v1/actions/mcp`; with an API key use `https://beta-api.b3os.org/mcp`), `origin` (a request with an `Origin` header to a sandbox's MCP server: no browser page calls a sandbox's tools), or `egress_escalation` (a call from inside a sandbox would open a way out beyond that sandbox's egress: a create, fork or egress change wider than its own policy, or a stream into a sandbox that left its reach while open).
|
|
183
|
+
|
|
184
|
+
<h3 id="ticket_limit"><code>ticket_limit</code></h3>
|
|
185
|
+
|
|
186
|
+
`429` · Too many stream tickets · Retryable · Members: `retry_after_s`
|
|
187
|
+
|
|
188
|
+
The node holds too many unredeemed stream tickets. Tickets expire after 30 seconds; request one only when you are about to open the stream, and retry after `Retry-After` seconds.
|
|
189
|
+
|
|
190
|
+
<h3 id="auth_unavailable"><code>auth_unavailable</code></h3>
|
|
191
|
+
|
|
192
|
+
`503` · Authentication temporarily unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `auth_unavailable` "Service Unavailable"
|
|
193
|
+
|
|
194
|
+
The node cannot verify tokens right now (its replay cache is full or its verification keys are rotating). Retry after `Retry-After` seconds.
|
|
195
|
+
|
|
196
|
+
<h3 id="signed_url_invalid"><code>signed_url_invalid</code></h3>
|
|
197
|
+
|
|
198
|
+
`403` · Invalid or expired signed URL · Not retryable · Members: `reason`
|
|
199
|
+
|
|
200
|
+
A `usercontent.b3os.org` link was refused: a render artifact URL (`node`, `exp`, `sig`), a hosted tool's file link (`/tf/<file>/<name>`, the same three) or a sandbox port preview token (`/sbx/<sandbox>/<port>/<token>/`). The `reason` member is `missing` (no signature or token), `malformed`, `expired` (past `exp`), `signature` (it does not verify, for example because the URL was changed) or `wrong_node`. Get a fresh link: `GET /v1/render/artifacts/{artifact_id}`, `GET /v1/actions/files/{file_id}` or `POST /v1/sandboxes/{sandbox_id}/ports/{port}/url`.
|
|
201
|
+
|
|
202
|
+
## Limits and billing
|
|
203
|
+
|
|
204
|
+
<h3 id="rate_limited"><code>rate_limited</code></h3>
|
|
205
|
+
|
|
206
|
+
`429` · Rate limited · Retryable · Members: `retry_after_s`, `limit` · Firecrawl: `429` `rate_limited` "Rate limit exceeded"
|
|
207
|
+
|
|
208
|
+
Too many requests in the current window. Wait `Retry-After` seconds; the `RateLimit-*` headers and the `limit` member show which limit applies (for example `vision.scrape.rpm`). The device-login endpoints (`POST /v1/auth/device/code`, `POST /v1/auth/device/token`) return it in the OAuth error shape (`{"error": "rate_limited", "error_description": ...}`) when one address starts or polls too many logins; polling faster than the device code's `interval` is `slow_down` (400) instead. An address (an IPv4 address or an IPv6 /64; for a Cloudflare Worker, the Worker's zone) that sends more than 30 well-formed but unknown API keys or CLI tokens in a minute gets it, with no `limit` member, until the minute is over, for any request with a key the edge has not found in the last day.
|
|
209
|
+
|
|
210
|
+
<h3 id="concurrency_limited"><code>concurrency_limited</code></h3>
|
|
211
|
+
|
|
212
|
+
`429` · Concurrency limit reached · Retryable · Members: `retry_after_s`, `limit` · Firecrawl: `429` `concurrency_limited` "Concurrency limit reached"
|
|
213
|
+
|
|
214
|
+
You already have the maximum number of concurrent operations of this kind (for example 10 running sandboxes or 5 browser sessions). Wait for one to finish, or stop one you no longer need.
|
|
215
|
+
|
|
216
|
+
<h3 id="quota_exceeded"><code>quota_exceeded</code></h3>
|
|
217
|
+
|
|
218
|
+
`429` · Quota exceeded · Retryable · Members: `retry_after_s`, `limit` · Firecrawl: `429` `quota_exceeded` "Quota exceeded"
|
|
219
|
+
|
|
220
|
+
A daily or monthly quota is used up (for example 50,000 routine steps per day, or the per-organization egress budget). `Retry-After` is the number of seconds until the quota resets.
|
|
221
|
+
|
|
222
|
+
<h3 id="credits_exhausted"><code>credits_exhausted</code></h3>
|
|
223
|
+
|
|
224
|
+
`402` · Credits exhausted · Not retryable · Firecrawl: `402` `credits_exhausted` "Insufficient credits"
|
|
225
|
+
|
|
226
|
+
Your organization has no credits left. Requests fail until credits are added; the dashboard shows the balance.
|
|
227
|
+
|
|
228
|
+
<h3 id="spend_cap_exceeded"><code>spend_cap_exceeded</code></h3>
|
|
229
|
+
|
|
230
|
+
`402` · Key spend cap reached · Not retryable · Firecrawl: `402` `spend_cap_exceeded` "Key spend cap reached"
|
|
231
|
+
|
|
232
|
+
This API key reached its spend cap. Raise the cap with `PATCH /v1/keys/{key_id}` or use another key. Other keys in the organization are not affected.
|
|
233
|
+
|
|
234
|
+
## Egress and upstreams
|
|
235
|
+
|
|
236
|
+
<h3 id="egress_denied"><code>egress_denied</code></h3>
|
|
237
|
+
|
|
238
|
+
`403` · Destination not allowed · Not retryable · Members: `reason` · Firecrawl: `403` `egress_denied` "Destination not allowed"
|
|
239
|
+
|
|
240
|
+
The egress guard refused the destination: a scheme other than http/https, or an address that is loopback, private (10/8, 172.16/12, 192.168/16), CGNAT or tailnet (100.64/10), link-local or metadata (169.254/16), benchmark (198.18/15), unique-local or link-local IPv6, multicast, or the node's own address; a redirect hop that lands on one of those; a host or port outside a sandbox or pack allowlist; or a domain the node's operator blocked (a site owner's opt-out). The `reason` member is one of `scheme`, `loopback`, `private_address`, `tailnet`, `link_local`, `metadata`, `multicast`, `node_address`, `not_allowlisted`, `operator`.
|
|
241
|
+
|
|
242
|
+
<h3 id="upstream_error"><code>upstream_error</code></h3>
|
|
243
|
+
|
|
244
|
+
`502` · Upstream error · Not retryable · Members: `upstream_status`, `pack_error` · Firecrawl: `502` `upstream_error` "Bad Gateway"
|
|
245
|
+
|
|
246
|
+
The third-party server answered with an error or a response B3OS could not use. `upstream_status` carries its HTTP status; for pack actions, `pack_error` carries the error the pack's error mapping chose. Whether a retry helps depends on the upstream (`pack_error.retryable` when present); B3OS retries only read-only calls itself.
|
|
247
|
+
|
|
248
|
+
<h3 id="upstream_unreachable"><code>upstream_unreachable</code></h3>
|
|
249
|
+
|
|
250
|
+
`502` · Upstream unreachable · Retryable · Members: `reason` · Firecrawl: `502` `upstream_unreachable` "Bad Gateway"
|
|
251
|
+
|
|
252
|
+
B3OS could not reach the destination: DNS resolution failed, the connection was refused or reset, or the TLS handshake failed. The `reason` member is `dns`, `connect` or `tls`.
|
|
253
|
+
|
|
254
|
+
<h3 id="upstream_timeout"><code>upstream_timeout</code></h3>
|
|
255
|
+
|
|
256
|
+
`504` · Upstream timeout · Retryable · Firecrawl: `504` `upstream_timeout` "Gateway Timeout"
|
|
257
|
+
|
|
258
|
+
The destination did not respond within the operation's timeout. Retry later or raise `timeout_ms` where the operation has one.
|
|
259
|
+
|
|
260
|
+
<h3 id="upstream_too_large"><code>upstream_too_large</code></h3>
|
|
261
|
+
|
|
262
|
+
`502` · Upstream response too large · Not retryable · Firecrawl: `502` `upstream_too_large` "Upstream response too large"
|
|
263
|
+
|
|
264
|
+
The destination's response exceeded the size cap for this operation, so B3OS stopped reading it.
|
|
265
|
+
|
|
266
|
+
<h3 id="too_many_redirects"><code>too_many_redirects</code></h3>
|
|
267
|
+
|
|
268
|
+
`502` · Too many redirects · Not retryable · Firecrawl: `502` `too_many_redirects` "Too many redirects"
|
|
269
|
+
|
|
270
|
+
The destination redirected more than 10 times. Each hop is checked by the egress guard; a hop to a refused address returns `egress_denied` instead.
|
|
271
|
+
|
|
272
|
+
<h3 id="cap_invalid"><code>cap_invalid</code></h3>
|
|
273
|
+
|
|
274
|
+
`407` · Egress capability invalid · Not retryable
|
|
275
|
+
|
|
276
|
+
A request on b3osd's egress capability socket (the actions-js sidecar's way out, packages/spec/sidecars/ actions-js.md §5) carried no `Proxy-Authorization: Bearer <capability token>`, or a token that is unknown, expired or revoked. Tokens are issued per action invocation and end with it; start a new invocation.
|
|
277
|
+
|
|
278
|
+
<h3 id="lease_token_invalid"><code>lease_token_invalid</code></h3>
|
|
279
|
+
|
|
280
|
+
`407` · Egress lease token invalid · Not retryable
|
|
281
|
+
|
|
282
|
+
A connection to an egress lease whose binding leaves through a proxy did not present that lease's token (`Proxy-Authorization: Basic` with the user `lease` and the token b3osd handed the lease's own client). Only b3osd's own clients hold the token; customers never see this code. Nothing was resolved or sent.
|
|
283
|
+
|
|
284
|
+
## Availability
|
|
285
|
+
|
|
286
|
+
<h3 id="node_unavailable"><code>node_unavailable</code></h3>
|
|
287
|
+
|
|
288
|
+
`503` · Node unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `node_unavailable` "Service Unavailable"
|
|
289
|
+
|
|
290
|
+
The B3OS node that serves this product is unreachable from the edge (restart or network). Retry after `Retry-After` seconds. Inbound routine webhooks are queued durably and replayed in order when the node returns. The edge also sends this when the node went away while it held the request, so a command run in a sandbox may have run: check its effect before you run it again (the SDKs never resend it themselves).
|
|
291
|
+
|
|
292
|
+
<h3 id="product_unavailable"><code>product_unavailable</code></h3>
|
|
293
|
+
|
|
294
|
+
`503` · Product unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `product_unavailable` "Service Unavailable"
|
|
295
|
+
|
|
296
|
+
The node is up but this product is not ready, for example while its browser pool or a sidecar restarts. `/readyz` and [the status page](https://beta.b3os.org/status) show per-product readiness. At the edge, also when project and organization settings cannot be stored yet in this deployment.
|
|
297
|
+
|
|
298
|
+
<h3 id="capacity_unavailable"><code>capacity_unavailable</code></h3>
|
|
299
|
+
|
|
300
|
+
`503` · No capacity available · Retryable · Members: `retry_after_s` · Firecrawl: `503` `capacity_unavailable` "Service Unavailable"
|
|
301
|
+
|
|
302
|
+
No warm capacity is free and the wait queue is full (sandbox slots, browsers, capture workers). This is node-wide, not your plan limit. Retry after `Retry-After` seconds.
|
|
303
|
+
|
|
304
|
+
<h3 id="budgets_unavailable"><code>budgets_unavailable</code></h3>
|
|
305
|
+
|
|
306
|
+
`503` · Budgets unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `budgets_unavailable` "Service Unavailable"
|
|
307
|
+
|
|
308
|
+
The node could not refresh its budget snapshot from beta-api.b3os.org recently, so it cannot check your credits and caps and does not start metered work (scrapes, renders, sandboxes, routine steps, action calls, inference) until it can. Requests that cost nothing still work. Retry after `Retry-After` seconds.
|
|
309
|
+
|
|
310
|
+
<h3 id="request_timeout"><code>request_timeout</code></h3>
|
|
311
|
+
|
|
312
|
+
`504` · Request timeout · Retryable · Firecrawl: `504` `request_timeout` "Gateway Timeout"
|
|
313
|
+
|
|
314
|
+
The operation did not finish within its time limit (`x-b3os-timeout-ms`). A handler works on a request for at most 60 seconds; `x-b3os-timeout-ms` allows up to 65,000 ms end to end, the extra 5 seconds covering queueing and the edge, which keeps every request under Cloudflare's 100-second origin limit. For long work, create a job and use `?wait=`, the events stream or a webhook.
|
|
315
|
+
|
|
316
|
+
<h3 id="invoke_depth_exceeded"><code>invoke_depth_exceeded</code></h3>
|
|
317
|
+
|
|
318
|
+
`508` · Call depth exceeded · Not retryable
|
|
319
|
+
|
|
320
|
+
A product called another product in-process more than the allowed nesting depth (for example a routine whose steps call routines that call it back). Break the cycle in your routine or action composition.
|
|
321
|
+
|
|
322
|
+
<h3 id="internal"><code>internal</code></h3>
|
|
323
|
+
|
|
324
|
+
`500` · Internal error · Retryable · Firecrawl: `500` `internal` "Internal Server Error"
|
|
325
|
+
|
|
326
|
+
Something failed inside B3OS. Retrying with backoff usually works. If it persists, contact support with the `instance` value (the request ID).
|
|
327
|
+
|
|
328
|
+
## Jobs
|
|
329
|
+
|
|
330
|
+
<h3 id="job_not_found"><code>job_not_found</code></h3>
|
|
331
|
+
|
|
332
|
+
`404` · Job not found · Not retryable · Firecrawl: `404` `job_not_found` "Extract job not found"
|
|
333
|
+
|
|
334
|
+
No job with this `job_` ID exists in your project, or its record has expired.
|
|
335
|
+
|
|
336
|
+
<h3 id="job_already_finished"><code>job_already_finished</code></h3>
|
|
337
|
+
|
|
338
|
+
`409` · Job already finished · Not retryable · Members: `current_status` · Firecrawl: `409` `job_already_finished` "Job already finished"
|
|
339
|
+
|
|
340
|
+
The job (or routine run) already reached a terminal status, so it cannot be canceled or signaled. The `current_status` member shows `succeeded`, `failed` or `canceled`.
|
|
341
|
+
|
|
342
|
+
<h3 id="job_canceled"><code>job_canceled</code></h3>
|
|
343
|
+
|
|
344
|
+
`409` · Job canceled · Not retryable
|
|
345
|
+
|
|
346
|
+
Used as the `error` of a job that was canceled before it finished. Partial results, if any, stay on the job.
|
|
347
|
+
|
|
348
|
+
<h3 id="job_timed_out"><code>job_timed_out</code></h3>
|
|
349
|
+
|
|
350
|
+
`504` · Job timed out · Retryable
|
|
351
|
+
|
|
352
|
+
Used as the `error` of a job that ran past its time budget. Retry with a smaller workload or a larger budget where one is configurable.
|
|
353
|
+
|
|
354
|
+
<h3 id="job_expired"><code>job_expired</code></h3>
|
|
355
|
+
|
|
356
|
+
`410` · Job results expired · Not retryable · Firecrawl: `404` `job_expired` "Job expired"
|
|
357
|
+
|
|
358
|
+
The job finished, but its results were deleted at the end of the retention period (see the job's `expires_at`).
|
|
359
|
+
|
|
360
|
+
<h3 id="stream_resume_unavailable"><code>stream_resume_unavailable</code></h3>
|
|
361
|
+
|
|
362
|
+
`410` · Stream position expired · Not retryable
|
|
363
|
+
|
|
364
|
+
`Last-Event-ID` points at events that are no longer retained. Reconnect without `Last-Event-ID` and read the current state from the job object.
|
|
365
|
+
|
|
366
|
+
<h3 id="invalid_webhook_url"><code>invalid_webhook_url</code></h3>
|
|
367
|
+
|
|
368
|
+
`422` · Invalid webhook URL · Not retryable · Firecrawl: `400` `invalid_webhook_url` "Invalid webhook URL"
|
|
369
|
+
|
|
370
|
+
The `webhook.url` is not an absolute `https://` URL, is longer than 2,048 characters, or resolves to an address the egress guard refuses.
|
|
371
|
+
|
|
372
|
+
## Platform
|
|
373
|
+
|
|
374
|
+
<h3 id="api_key_not_found"><code>api_key_not_found</code></h3>
|
|
375
|
+
|
|
376
|
+
`404` · API key not found · Not retryable
|
|
377
|
+
|
|
378
|
+
No API key with this ID exists in your organization.
|
|
379
|
+
|
|
380
|
+
<h3 id="project_not_found"><code>project_not_found</code></h3>
|
|
381
|
+
|
|
382
|
+
`404` · Project not found · Not retryable
|
|
383
|
+
|
|
384
|
+
No project with this ID exists in your organization.
|
|
385
|
+
|
|
386
|
+
<h3 id="org_not_found"><code>org_not_found</code></h3>
|
|
387
|
+
|
|
388
|
+
`404` · Organization not found · Not retryable
|
|
389
|
+
|
|
390
|
+
No organization with this ID exists, or you are not a member of it.
|
|
391
|
+
|
|
392
|
+
<h3 id="request_not_found"><code>request_not_found</code></h3>
|
|
393
|
+
|
|
394
|
+
`404` · Request not found · Not retryable
|
|
395
|
+
|
|
396
|
+
No request with this ID exists in your project. Request records are kept for 7 days.
|
|
397
|
+
|
|
398
|
+
<h3 id="llm_call_not_found"><code>llm_call_not_found</code></h3>
|
|
399
|
+
|
|
400
|
+
`404` · Model call not found · Not retryable
|
|
401
|
+
|
|
402
|
+
No kept model call with this request ID exists in your project. A call is kept only while the project's `platform.capture_content` setting is on, for 7 days, on the node that served it, and not after it was deleted.
|
|
403
|
+
|
|
404
|
+
<h3 id="invalid_option"><code>invalid_option</code></h3>
|
|
405
|
+
|
|
406
|
+
`422` · Invalid option · Not retryable · Members: `option`, `value`, `allowed`
|
|
407
|
+
|
|
408
|
+
The setting names an option the catalog does not have, or a value outside the option's values. `option` names it and, for a known option, `allowed` lists the values this release serves. See `GET /v1/settings` for the options and their values.
|
|
409
|
+
|
|
410
|
+
<h3 id="project_not_empty"><code>project_not_empty</code></h3>
|
|
411
|
+
|
|
412
|
+
`409` · Project not empty · Not retryable
|
|
413
|
+
|
|
414
|
+
The project still has running sandboxes, open browser sessions or active routines. Stop or delete them, then delete the project.
|
|
415
|
+
|
|
416
|
+
<h3 id="last_project"><code>last_project</code></h3>
|
|
417
|
+
|
|
418
|
+
`409` · Last project · Not retryable
|
|
419
|
+
|
|
420
|
+
An organization must keep at least one project. Create another project before deleting this one.
|
|
421
|
+
|
|
422
|
+
<h3 id="invite_code_invalid"><code>invite_code_invalid</code></h3>
|
|
423
|
+
|
|
424
|
+
`400` · Invalid invite code · Not retryable
|
|
425
|
+
|
|
426
|
+
The invite code is unknown or expired. Beta access is by invite; check the code you were sent.
|
|
427
|
+
|
|
428
|
+
<h3 id="invite_code_used"><code>invite_code_used</code></h3>
|
|
429
|
+
|
|
430
|
+
`409` · Invite code already used · Not retryable
|
|
431
|
+
|
|
432
|
+
The invite code was already redeemed. Each code creates one organization.
|
|
433
|
+
|
|
434
|
+
<h3 id="member_not_found"><code>member_not_found</code></h3>
|
|
435
|
+
|
|
436
|
+
`404` · Member not found · Not retryable
|
|
437
|
+
|
|
438
|
+
The user is not a member of this organization, or the organization is not yours to manage.
|
|
439
|
+
|
|
440
|
+
<h3 id="last_owner"><code>last_owner</code></h3>
|
|
441
|
+
|
|
442
|
+
`409` · Last owner · Not retryable
|
|
443
|
+
|
|
444
|
+
An organization keeps at least one owner. Its only owner cannot be removed, demoted or leave; make another member an owner first.
|
|
445
|
+
|
|
446
|
+
<h3 id="already_member"><code>already_member</code></h3>
|
|
447
|
+
|
|
448
|
+
`409` · Already a member · Not retryable
|
|
449
|
+
|
|
450
|
+
The person is already a member of this organization. An invite you tried to accept stays unused, so it still works for someone else.
|
|
451
|
+
|
|
452
|
+
<h3 id="org_invite_exists"><code>org_invite_exists</code></h3>
|
|
453
|
+
|
|
454
|
+
`409` · Invite already pending · Not retryable
|
|
455
|
+
|
|
456
|
+
This address already has a pending invite to the organization. Resend that invite instead of making a new one.
|
|
457
|
+
|
|
458
|
+
<h3 id="org_invite_not_found"><code>org_invite_not_found</code></h3>
|
|
459
|
+
|
|
460
|
+
`404` · Invite not found · Not retryable
|
|
461
|
+
|
|
462
|
+
No pending or expired invite with this ID exists here, or it is not one you may change.
|
|
463
|
+
|
|
464
|
+
<h3 id="org_invite_invalid"><code>org_invite_invalid</code></h3>
|
|
465
|
+
|
|
466
|
+
`400` · Invalid invite · Not retryable
|
|
467
|
+
|
|
468
|
+
The invite link is unknown, was revoked, or was already used; each link works once. Ask whoever invited you for a new one.
|
|
469
|
+
|
|
470
|
+
<h3 id="org_invite_expired"><code>org_invite_expired</code></h3>
|
|
471
|
+
|
|
472
|
+
`410` · Invite expired · Not retryable
|
|
473
|
+
|
|
474
|
+
The invite expired: email invites last 7 days and links 3. Ask whoever invited you to resend it.
|
|
475
|
+
|
|
476
|
+
<h3 id="org_invite_wrong_account"><code>org_invite_wrong_account</code></h3>
|
|
477
|
+
|
|
478
|
+
`403` · Invite is for another address · Not retryable
|
|
479
|
+
|
|
480
|
+
The invite was emailed to another address, or your address is not verified. Sign in with the address the invite was sent to. The answer never names that address.
|
|
481
|
+
|
|
482
|
+
<h3 id="org_invite_code_required"><code>org_invite_code_required</code></h3>
|
|
483
|
+
|
|
484
|
+
`403` · Accept code required · Not retryable
|
|
485
|
+
|
|
486
|
+
The invite was emailed to your address, and your address was not proven in the last 30 days (an email-code sign-in proves it; a GitHub sign-in does not). A 6-digit code went to it: send the accept again with `code`.
|
|
487
|
+
|
|
488
|
+
<h3 id="org_invite_code_invalid"><code>org_invite_code_invalid</code></h3>
|
|
489
|
+
|
|
490
|
+
`400` · Invalid accept code · Not retryable
|
|
491
|
+
|
|
492
|
+
The accept code is wrong, expired (codes last 10 minutes) or was tried five times. Accept again without a code for a new one.
|
|
493
|
+
|
|
494
|
+
<h3 id="email_code_invalid"><code>email_code_invalid</code></h3>
|
|
495
|
+
|
|
496
|
+
`400` · Invalid email code · Not retryable
|
|
497
|
+
|
|
498
|
+
The sign-in code is wrong or expired (codes are valid for 10 minutes). Request a new code.
|
|
499
|
+
|
|
500
|
+
<h3 id="user_code_not_found"><code>user_code_not_found</code></h3>
|
|
501
|
+
|
|
502
|
+
`404` · Device code not found · Not retryable
|
|
503
|
+
|
|
504
|
+
The device login code is unknown or expired. Run `b3os login` again for a new code.
|
|
505
|
+
|
|
506
|
+
<h3 id="device_authorization_finished"><code>device_authorization_finished</code></h3>
|
|
507
|
+
|
|
508
|
+
`409` · Device login already decided · Not retryable
|
|
509
|
+
|
|
510
|
+
This device login was already approved or denied.
|
|
511
|
+
|
|
512
|
+
<h3 id="publisher_not_allowed"><code>publisher_not_allowed</code></h3>
|
|
513
|
+
|
|
514
|
+
`403` · Publisher not allowed · Not retryable
|
|
515
|
+
|
|
516
|
+
The caller may not publish, change or delete this pack. In the beta, a listed pack is published by a first-party organization (into `io.b3os`) or by the organization the registry's publisher list names for its namespace; an organization publishes hosted tools privately into its own `org.` namespace only, and only tool packs there ("org-private packs without a tool block are not open yet (M7)"). An org-private version is deleted, a listed one yanked ("only org-private tools are deleted; a listed version is yanked").
|
|
517
|
+
|
|
518
|
+
<h3 id="pack_version_exists"><code>pack_version_exists</code></h3>
|
|
519
|
+
|
|
520
|
+
`409` · Pack version exists · Not retryable
|
|
521
|
+
|
|
522
|
+
This pack version is already published. Versions are immutable; publish a higher semver version.
|
|
523
|
+
|
|
524
|
+
<h3 id="pack_invalid"><code>pack_invalid</code></h3>
|
|
525
|
+
|
|
526
|
+
`422` · Invalid pack · Not retryable · Members: `errors`
|
|
527
|
+
|
|
528
|
+
The pack manifest failed `b3pack.schema.json` validation or publish-time compilation. `errors[]` points into the manifest.
|
|
529
|
+
|
|
530
|
+
<h3 id="pack_signature_invalid"><code>pack_signature_invalid</code></h3>
|
|
531
|
+
|
|
532
|
+
`422` · Invalid pack signature · Not retryable
|
|
533
|
+
|
|
534
|
+
The publisher signature does not verify against the uploaded manifest and bundle hashes, or the signing key is not registered to the publisher. An org-private version carries no signature of its own: the registry signs it ("an org-private version is signed by the registry; leave signature out"). A block lift whose signature is missing or does not verify with an `io.b3os` release key is refused with this code too.
|
|
535
|
+
|
|
536
|
+
<h3 id="org_suspended"><code>org_suspended</code></h3>
|
|
537
|
+
|
|
538
|
+
`403` · Organization suspended · Not retryable
|
|
539
|
+
|
|
540
|
+
The organization is suspended, so its keys, tokens and dashboard sessions cannot start work. Account operations that read the organization still answer. Contact support.
|
|
541
|
+
|
|
542
|
+
<h3 id="hook_queue_full"><code>hook_queue_full</code></h3>
|
|
543
|
+
|
|
544
|
+
`503` · Webhook queue full · Retryable · Members: `retry_after_s`
|
|
545
|
+
|
|
546
|
+
The node is unreachable and this hook already holds the most deliveries the edge queues for one hook (10,000, or 72 hours of them). The delivery was not stored; retry after `Retry-After` seconds, as webhook providers do.
|
|
547
|
+
|
|
548
|
+
<h3 id="email_unavailable"><code>email_unavailable</code></h3>
|
|
549
|
+
|
|
550
|
+
`503` · Email sign-in unavailable · Retryable · Members: `retry_after_s`
|
|
551
|
+
|
|
552
|
+
The edge could not confirm that a sign-in code was sent; `detail` says which case applies. No code was sent when the mail service refused the message, the edge ran out of time before sending it, the edge-wide sign-in mail budget for the minute or the day is used up, or this deployment has no mail service configured (`Retry-After` is then an hour). When the mail service did not answer in time or was still processing the message when the edge stopped waiting, the code may still arrive and works if it does. Request a new code after `Retry-After` seconds, or sign in with GitHub.
|
|
553
|
+
|
|
554
|
+
<h3 id="turnstile_required"><code>turnstile_required</code></h3>
|
|
555
|
+
|
|
556
|
+
`400` · Turnstile token required · Not retryable
|
|
557
|
+
|
|
558
|
+
An email sign-in start or an invite request needs a Cloudflare Turnstile token and this one had none. Render the Turnstile widget with the site key and action from `GET /v1/auth/config` and send the token it gives as `turnstile_token`. No code was sent and nothing was counted against any limit.
|
|
559
|
+
|
|
560
|
+
<h3 id="turnstile_failed"><code>turnstile_failed</code></h3>
|
|
561
|
+
|
|
562
|
+
`403` · Turnstile check failed · Not retryable
|
|
563
|
+
|
|
564
|
+
Cloudflare Turnstile did not accept the token: it is invalid, expired (a token lasts 5 minutes), already used (each token works once), or was issued on another hostname or for another action. Reset the widget, solve the challenge again and send the new token. No code was sent, no invite request was saved and nothing was counted against any limit.
|
|
565
|
+
|
|
566
|
+
<h3 id="turnstile_unavailable"><code>turnstile_unavailable</code></h3>
|
|
567
|
+
|
|
568
|
+
`503` · Turnstile unavailable · Retryable · Members: `retry_after_s`
|
|
569
|
+
|
|
570
|
+
The edge could not check the Turnstile token: Cloudflare's siteverify did not answer in time or failed (`Retry-After` is then 30 seconds), or this deployment has no Turnstile keys (`Retry-After` is then an hour). No code was sent, no invite request was saved and nothing was counted against any limit. Solve the challenge again after `Retry-After` seconds and send the new token, or sign in with GitHub.
|
|
571
|
+
|
|
572
|
+
<h3 id="playground_limited"><code>playground_limited</code></h3>
|
|
573
|
+
|
|
574
|
+
`429` · Playground limit reached · Retryable · Members: `retry_after_s`, `limit`
|
|
575
|
+
|
|
576
|
+
A metered call made with the dashboard session (the console and the site's Try it) is past the playground limit: 30 runs an hour and 150 a day per user (`platform.playground.hourly`, `platform.playground.daily`), or the day's budget for every session run (`platform.playground.global_daily`). `Retry-After` and `retry_after_s` say when a run passes again, `limit` names the limit, and the `RateLimit-*` headers repeat it. Nothing ran and nothing was billed. Calls with an API key are not limited this way: create one on the Keys page and send it as `Authorization: Bearer <key>`.
|
|
577
|
+
|
|
578
|
+
## Deploys
|
|
579
|
+
|
|
580
|
+
<h3 id="github_app_not_configured"><code>github_app_not_configured</code></h3>
|
|
581
|
+
|
|
582
|
+
`503` · GitHub App not configured · Not retryable
|
|
583
|
+
|
|
584
|
+
The B3OS GitHub App is not set up on this deployment yet, so GitHub repositories cannot be connected and pushes do not deploy. Deploy with `b3os apply` or the GitHub Actions workflow meanwhile.
|
|
585
|
+
|
|
586
|
+
<h3 id="github_installation_not_found"><code>github_installation_not_found</code></h3>
|
|
587
|
+
|
|
588
|
+
`404` · GitHub installation not found · Not retryable
|
|
589
|
+
|
|
590
|
+
No installation of the B3OS GitHub App with this ID is connected to your organization, or it was removed on GitHub. Connect GitHub again from the dashboard.
|
|
591
|
+
|
|
592
|
+
<h3 id="github_repository_not_accessible"><code>github_repository_not_accessible</code></h3>
|
|
593
|
+
|
|
594
|
+
`404` · GitHub repository not accessible · Not retryable
|
|
595
|
+
|
|
596
|
+
The installation cannot read this repository: it is not among the repositories the B3OS GitHub App was given on GitHub, or it does not exist. Add it to the App's repositories on GitHub, then try again.
|
|
597
|
+
|
|
598
|
+
<h3 id="repository_link_not_found"><code>repository_link_not_found</code></h3>
|
|
599
|
+
|
|
600
|
+
`404` · Repository link not found · Not retryable
|
|
601
|
+
|
|
602
|
+
No GitHub repository is linked to this application in your organization.
|
|
603
|
+
|
|
604
|
+
<h3 id="github_write_not_permitted"><code>github_write_not_permitted</code></h3>
|
|
605
|
+
|
|
606
|
+
`403` · GitHub write not permitted · Not retryable
|
|
607
|
+
|
|
608
|
+
The B3OS GitHub App's installation may only read this repository's contents, so B3OS cannot open or merge a pull request there. An owner of the GitHub account accepts the App's request for Contents read and write (on GitHub, the installation's settings), then try again. Meanwhile copy the change and commit it yourself.
|
|
609
|
+
|
|
610
|
+
<h3 id="manifest_changed"><code>manifest_changed</code></h3>
|
|
611
|
+
|
|
612
|
+
`409` · b3os.yaml changed · Not retryable · Members: `head_commit`, `head_digest`
|
|
613
|
+
|
|
614
|
+
The b3os.yaml at the head of the linked branch is not the one the change was made on (`base_digest`): someone pushed to it since you read it. Nothing was written. Opening a change: read the file again (GET /v1/apps/{app}/manifest) and send the operation once more. Merging one: nothing was merged, since the merged file would be one no plan saw; close the change and open it again on the new file. `head_commit` and `head_digest` name the branch head now and its file's digest.
|
|
615
|
+
|
|
616
|
+
<h3 id="too_many_open_changes"><code>too_many_open_changes</code></h3>
|
|
617
|
+
|
|
618
|
+
`409` · Too many open changes · Not retryable · Members: `limit`
|
|
619
|
+
|
|
620
|
+
The application already has as many open changes as it may (`apps.changes.open_max`, 20 by default), or the organization does (`apps.changes.org_open_max`, 200). An open change is a pull request B3OS opened on a linked repository that is not merged or closed yet. Nothing was written. Merge or close one (Close a change, or on GitHub), then open the new one. Housekeeping closes a change left open for 30 days. The `limit` member names the limit, its value and the open changes now.
|
|
621
|
+
|
|
622
|
+
<h3 id="change_not_found"><code>change_not_found</code></h3>
|
|
623
|
+
|
|
624
|
+
`404` · Change not found · Not retryable
|
|
625
|
+
|
|
626
|
+
No change with this ID to this application exists in your organization. Changes are kept 90 days after they are merged or closed.
|
|
627
|
+
|
|
628
|
+
<h3 id="change_not_mergeable"><code>change_not_mergeable</code></h3>
|
|
629
|
+
|
|
630
|
+
`409` · Change not mergeable · Not retryable · Members: `reason`
|
|
631
|
+
|
|
632
|
+
The change cannot be merged, or closed, now. `reason` says why: `merged` or `closed` (it already was), `plan_pending` (its `b3os/plan` check has not finished: wait for it), `plan_failed` (the plan found a problem: close the change), `conflict` (the linked branch changed the same lines: close the change and open it again), `link_changed` (the application's repository link changed since the change was opened: close it and open it again) or `blocked` (GitHub refused the merge, for example a branch rule that asks for a review, or the pull request now merges into another branch: merge it on GitHub).
|
|
633
|
+
|
|
634
|
+
<h3 id="eval_run_not_found"><code>eval_run_not_found</code></h3>
|
|
635
|
+
|
|
636
|
+
`404` · Eval run not found · Not retryable
|
|
637
|
+
|
|
638
|
+
No eval run with this ID exists in your organization. Eval runs are kept 90 days.
|
|
639
|
+
|
|
640
|
+
<h3 id="alert_destination_not_found"><code>alert_destination_not_found</code></h3>
|
|
641
|
+
|
|
642
|
+
`404` · Alert destination not found · Not retryable
|
|
643
|
+
|
|
644
|
+
No alert destination with this name in your project. List them with GET /v1/alerts/destinations.
|
|
645
|
+
|
|
646
|
+
<h3 id="trace_not_found"><code>trace_not_found</code></h3>
|
|
647
|
+
|
|
648
|
+
`404` · Trace not found · Not retryable
|
|
649
|
+
|
|
650
|
+
No request of this trace id in your project in the last 7 days. The request log keeps 7 days.
|
|
651
|
+
|
|
652
|
+
<h3 id="deploy_not_found"><code>deploy_not_found</code></h3>
|
|
653
|
+
|
|
654
|
+
`404` · Deploy not found · Not retryable
|
|
655
|
+
|
|
656
|
+
No deploy with this ID exists in your organization. Deploys are kept 90 days; the live one is always kept.
|
|
657
|
+
|
|
658
|
+
<h3 id="deploy_not_rollbackable"><code>deploy_not_rollbackable</code></h3>
|
|
659
|
+
|
|
660
|
+
`409` · Deploy cannot be rolled back to · Not retryable
|
|
661
|
+
|
|
662
|
+
The deploy cannot be rolled back to or deployed again from the dashboard: it never went live, it is live now, its application is no longer linked to the same repository, it is more than 7 days old and its build is no longer kept, or `b3os apply` recorded it (run `b3os apply` at its commit, or push, instead).
|
|
663
|
+
|
|
664
|
+
<h3 id="deploy_not_updatable"><code>deploy_not_updatable</code></h3>
|
|
665
|
+
|
|
666
|
+
`409` · Deploy cannot change this way · Not retryable
|
|
667
|
+
|
|
668
|
+
The deploy cannot be changed by this request: the GitHub App runs it (only the credential that opened a deploy with `POST /v1/deploys` changes it), another key opened it, it has ended, or the status does not follow from the one it has. Get the deploy to see where it stands.
|
|
669
|
+
|
|
670
|
+
## Addresses
|
|
671
|
+
|
|
672
|
+
<h3 id="app_host_label_taken"><code>app_host_label_taken</code></h3>
|
|
673
|
+
|
|
674
|
+
`409` · Address label taken · Not retryable · Members: `service`, `port`
|
|
675
|
+
|
|
676
|
+
Another application or organization holds the label `host` asks for, or every label the port could get (the same label without its hyphens counts as the same). Labels are first come and never handed to another organization. Set `host` on the port to ask for another one. `service` and `port` name the port.
|
|
677
|
+
|
|
678
|
+
<h3 id="app_host_label_reserved"><code>app_host_label_reserved</code></h3>
|
|
679
|
+
|
|
680
|
+
`422` · Address label reserved · Not retryable · Members: `reason`, `service`, `port`
|
|
681
|
+
|
|
682
|
+
B3OS does not give out this label. `reason` says why: `grammar` (not 1 to 63 lowercase letters, digits and hyphens with no hyphen at either end), `double_hyphen` (`--` is kept for the addresses B3OS derives from an application's own label, and no label has `--` at characters 3 and 4, which browsers read as an encoded international name: an application label of 2 characters gets no derived address), `reserved` (a word such as `api`, `www`, `xn` or `demo`), `brand` (it names B3OS) or `phishing` (a word such as `login`, `pay` or `support`, which no address may hold, B3's own included); the words count with hyphens inside them and with digits for the letters they look like too (`log-in`, `b-3os`, `l0gin`, `supp0rt`). An application whose name holds such a word gets no address by default: set `host` on the port. `base_too_long`: the application's label has more than 55 characters, so no address is derived from it for a further port. Choose another `host` (set `host` on that port), or rename the application. `service` and `port` name the port.
|
|
683
|
+
|
|
684
|
+
<h3 id="app_host_conflict"><code>app_host_conflict</code></h3>
|
|
685
|
+
|
|
686
|
+
`409` · Address label is fixed · Not retryable · Members: `reason`, `service`, `port`
|
|
687
|
+
|
|
688
|
+
The port already has an address with another label than `host` asks for (`reason: label_fixed`). A label never moves to another label or another port once claimed; remove `host`, or set it to the label the port has. `service` and `port` name the port.
|
|
689
|
+
|
|
690
|
+
<h3 id="app_host_route_conflict"><code>app_host_route_conflict</code></h3>
|
|
691
|
+
|
|
692
|
+
`409` · Address switched by another call · Retryable · Members: `reason`, `service`, `port`
|
|
693
|
+
|
|
694
|
+
A label's current sandbox is not the `if_current` the request sent: another deploy or keepalive switched it after you read it. Nothing changed. Read the addresses again and decide from what they serve now. On a claim (`reason: newer_deploy`, with `service` and `port`): a newer deploy, or a change made without `deploy_id`, claimed or switched the address after the deploy the claim names began; nothing was written, and `b3os apply` stops as stale, leaving what the newer change set.
|
|
695
|
+
|
|
696
|
+
<h3 id="app_host_not_found"><code>app_host_not_found</code></h3>
|
|
697
|
+
|
|
698
|
+
`404` · Address not found · Not retryable
|
|
699
|
+
|
|
700
|
+
No address with this label belongs to the application in your project.
|
|
701
|
+
|
|
702
|
+
<h3 id="app_icon_not_found"><code>app_icon_not_found</code></h3>
|
|
703
|
+
|
|
704
|
+
`404` · Application icon not found · Not retryable
|
|
705
|
+
|
|
706
|
+
The application has no icon yet: it has no primary address, its address did not answer when B3OS last read it, or its page names no square image B3OS keeps. B3OS reads it again when a deploy goes live and each day.
|
|
707
|
+
|
|
708
|
+
<h3 id="app_host_blocked"><code>app_host_blocked</code></h3>
|
|
709
|
+
|
|
710
|
+
`403` · Address blocked · Not retryable · Members: `service`, `port`
|
|
711
|
+
|
|
712
|
+
B3OS has taken this address offline (after a report). It can be neither claimed again nor routed, and it answers every visitor with `410`; while it is blocked, no port of its application in that project is claimed either. Contact support. On a claim or preview, `service` and `port` name the blocked address's port. A sandbox whose port hosts (`<port>-sbx-<sandbox>.b3os.io`) B3 blocked gets it on every new link for any of its ports.
|
|
713
|
+
|
|
714
|
+
<h3 id="app_host_public_needs_spend_cap"><code>app_host_public_needs_spend_cap</code></h3>
|
|
715
|
+
|
|
716
|
+
`422` · Public address needs a spend cap · Not retryable · Members: `service`, `port`
|
|
717
|
+
|
|
718
|
+
A `public` address lets anyone on the internet use the service, and its B3OS calls spend from your project. The sandbox it would serve has no `spend_cap_usd` in its grant: set `grant.spend_cap_usd` on the service. A claim that turns a serving address public is refused while the address serves such a sandbox; `service` and `port` then name the port.
|
|
719
|
+
|
|
720
|
+
<h3 id="app_host_port_public"><code>app_host_port_public</code></h3>
|
|
721
|
+
|
|
722
|
+
`422` · Address port is public · Not retryable
|
|
723
|
+
|
|
724
|
+
A `link` address serves only a sandbox whose port is private (`public: false`): a public port has a preview URL that reaches the app with no link and outlives a rotated link. Create the sandbox with the port private; `b3os apply` does so for every port that has an address. A claim that would turn a serving public address into a link one while its sandbox has that port public is refused the same way, and nothing is written.
|
|
725
|
+
|
|
726
|
+
<h3 id="app_domain_invalid"><code>app_domain_invalid</code></h3>
|
|
727
|
+
|
|
728
|
+
`422` · Custom domain refused · Not retryable · Members: `reason`
|
|
729
|
+
|
|
730
|
+
B3OS does not take this name as a custom domain. `reason` says why: `grammar` (not a hostname such as `shop.example.com`, or it carries a scheme, a path, a port or a user), `ip` (an IP address, or a name whose last label is a number), `single_label` (no dot), `wildcard` (a `*`: add each name), `b3os` (a name under b3os.io, where each application already has its address, or under another of B3's domains), or `brand` (a label that holds b3os or b3iq, read without hyphens and with digits as the letters they look like, such as `login-b3os` or `b30s`: only B3's own organizations may use one).
|
|
731
|
+
|
|
732
|
+
<h3 id="app_domain_taken"><code>app_domain_taken</code></h3>
|
|
733
|
+
|
|
734
|
+
`409` · Custom domain taken · Not retryable
|
|
735
|
+
|
|
736
|
+
Another application serves this name, or is getting its certificate, or this application has it already for another of its addresses. A name is taken only once its DNS record is seen, so an added name that is still pending takes nothing. To move a name, remove it from the application that has it, add it here, and point its record at this application's address.
|
|
737
|
+
|
|
738
|
+
<h3 id="app_domain_not_found"><code>app_domain_not_found</code></h3>
|
|
739
|
+
|
|
740
|
+
`404` · Custom domain not found · Not retryable
|
|
741
|
+
|
|
742
|
+
The application has no custom domain with this name in your project. A name whose DNS record was not seen within 72 hours of being added is removed; add it again.
|
|
743
|
+
|
|
744
|
+
<h3 id="app_domain_unavailable"><code>app_domain_unavailable</code></h3>
|
|
745
|
+
|
|
746
|
+
`503` · Custom domains unavailable · Retryable · Members: `reason`, `retry_after_s`
|
|
747
|
+
|
|
748
|
+
B3OS could not finish the call. `reason` says which side: `cloudflare` (Cloudflare did not answer or refused; the detail quotes it), `dns` (the DNS lookup of the name failed), `not_configured` (custom domains are not set up on this deployment yet) or `zone_full` (B3OS holds as many custom domains as it allows now). Nothing changed, except on a removal, where the name already serves nothing and B3OS finishes the removal itself. Retry after `Retry-After` seconds.
|
|
749
|
+
|
|
750
|
+
<h3 id="sandbox_routed"><code>sandbox_routed</code></h3>
|
|
751
|
+
|
|
752
|
+
`409` · Sandbox serves an address · Not retryable
|
|
753
|
+
|
|
754
|
+
The sandbox serves an application's address (`detail` names it), so deleting it would leave the address on a sandbox that is gone. Switch the address to another sandbox first (a deploy with `b3os apply` does), or stop the address.
|
|
755
|
+
|
|
756
|
+
<h3 id="app_not_found"><code>app_not_found</code></h3>
|
|
757
|
+
|
|
758
|
+
`404` · No app at this address · Not retryable
|
|
759
|
+
|
|
760
|
+
No application has this address on b3os.io.
|
|
761
|
+
|
|
762
|
+
<h3 id="app_link_required"><code>app_link_required</code></h3>
|
|
763
|
+
|
|
764
|
+
`401` · App shared by link · Not retryable
|
|
765
|
+
|
|
766
|
+
This application is shared by link. Ask its owner for the link; it is the same answer for a missing and a wrong link.
|
|
767
|
+
|
|
768
|
+
<h3 id="app_deploying"><code>app_deploying</code></h3>
|
|
769
|
+
|
|
770
|
+
`503` · App not live yet · Retryable
|
|
771
|
+
|
|
772
|
+
The address is claimed and no deploy has served it yet: one may be running, or the first one failed or never ran. Retry after `Retry-After` seconds; a browser's page load reloads by itself every 5 seconds.
|
|
773
|
+
|
|
774
|
+
<h3 id="app_not_running"><code>app_not_running</code></h3>
|
|
775
|
+
|
|
776
|
+
`503` · App not running · Retryable
|
|
777
|
+
|
|
778
|
+
The application at this address is not running. Its owner can start it with `b3os apply`. Retry after `Retry-After` seconds.
|
|
779
|
+
|
|
780
|
+
<h3 id="app_blocked"><code>app_blocked</code></h3>
|
|
781
|
+
|
|
782
|
+
`410` · Address unavailable · Not retryable
|
|
783
|
+
|
|
784
|
+
This address is unavailable. B3OS has taken it offline.
|
|
785
|
+
|
|
786
|
+
<h3 id="app_unavailable"><code>app_unavailable</code></h3>
|
|
787
|
+
|
|
788
|
+
`503` · App unavailable · Retryable · Members: `reason`
|
|
789
|
+
|
|
790
|
+
B3OS could not serve the application just now. `reason` says where: `resolve` (the address could not be looked up), `node` (the node did not answer) or `node_outdated` (the node does not serve addresses yet).
|
|
791
|
+
|
|
792
|
+
<h3 id="app_request_refused"><code>app_request_refused</code></h3>
|
|
793
|
+
|
|
794
|
+
`403` · Request not served · Not retryable
|
|
795
|
+
|
|
796
|
+
B3OS does not serve this request on app addresses or sandbox port previews: the network in front of the node refused it before the node saw it. It refuses paths that scanners probe, such as `/.env` and `/.git/config`, and requests its firewall's managed rules flag, such as a body holding script tags or SQL. The same request never succeeds; the node and the app are fine.
|
|
797
|
+
|
|
798
|
+
## Device login
|
|
799
|
+
|
|
800
|
+
The device-login endpoints (`POST /v1/auth/device/code`, `POST /v1/auth/device/token`) answer with the OAuth error shape `{"error": "<code>", "error_description": "…"}` (RFC 6749 section 5.2, RFC 8628 section 3.5) instead of a problem.
|
|
801
|
+
|
|
802
|
+
<h3 id="authorization_pending"><code>authorization_pending</code></h3>
|
|
803
|
+
|
|
804
|
+
`400` · Authorization pending · Retryable
|
|
805
|
+
|
|
806
|
+
The user has not approved the device login yet. Keep polling at the `interval` from the device code response.
|
|
807
|
+
|
|
808
|
+
<h3 id="slow_down"><code>slow_down</code></h3>
|
|
809
|
+
|
|
810
|
+
`400` · Slow down · Retryable
|
|
811
|
+
|
|
812
|
+
The client polled the token endpoint faster than the device code's `interval`. Add 5 seconds to the polling interval, as RFC 8628 requires. Too many logins from one address get `rate_limited` (429) instead.
|
|
813
|
+
|
|
814
|
+
<h3 id="access_denied"><code>access_denied</code></h3>
|
|
815
|
+
|
|
816
|
+
`400` · Access denied · Not retryable
|
|
817
|
+
|
|
818
|
+
The user denied the device login. Stop polling.
|
|
819
|
+
|
|
820
|
+
<h3 id="expired_token"><code>expired_token</code></h3>
|
|
821
|
+
|
|
822
|
+
`400` · Device code expired · Not retryable
|
|
823
|
+
|
|
824
|
+
The device code expired before approval. Start a new login.
|
|
825
|
+
|
|
826
|
+
<h3 id="invalid_grant"><code>invalid_grant</code></h3>
|
|
827
|
+
|
|
828
|
+
`400` · Invalid grant · Not retryable
|
|
829
|
+
|
|
830
|
+
The device code is unknown or was already exchanged for a token.
|
|
831
|
+
|
|
832
|
+
<h3 id="invalid_client"><code>invalid_client</code></h3>
|
|
833
|
+
|
|
834
|
+
`401` · Invalid client · Not retryable
|
|
835
|
+
|
|
836
|
+
The `client_id` is not a registered B3OS client (`b3os-cli`, `b3os-mcp`, `b3os-sdk`).
|
|
837
|
+
|
|
838
|
+
<h3 id="unsupported_grant_type"><code>unsupported_grant_type</code></h3>
|
|
839
|
+
|
|
840
|
+
`400` · Unsupported grant type · Not retryable
|
|
841
|
+
|
|
842
|
+
The token endpoint only accepts `grant_type=urn:ietf:params:oauth:grant-type:device_code`.
|
|
843
|
+
|
|
844
|
+
## Vision
|
|
845
|
+
|
|
846
|
+
<h3 id="session_not_found"><code>session_not_found</code></h3>
|
|
847
|
+
|
|
848
|
+
`404` · Browser session not found · Not retryable
|
|
849
|
+
|
|
850
|
+
No browser session with this `brs_` ID exists in your project.
|
|
851
|
+
|
|
852
|
+
<h3 id="session_closed"><code>session_closed</code></h3>
|
|
853
|
+
|
|
854
|
+
`409` · Browser session closed · Not retryable · Members: `current_status`
|
|
855
|
+
|
|
856
|
+
The session was closed or reached its timeout, and its browser was destroyed. Create a new session; save cookies and storage to a profile first if you need them again.
|
|
857
|
+
|
|
858
|
+
<h3 id="profile_not_found"><code>profile_not_found</code></h3>
|
|
859
|
+
|
|
860
|
+
`404` · Browser profile not found · Not retryable · Firecrawl: `404` `profile_not_found` "Profile not found"
|
|
861
|
+
|
|
862
|
+
No browser profile with this ID or name exists in your project. Profiles never cross organizations.
|
|
863
|
+
|
|
864
|
+
<h3 id="profile_domain_mismatch"><code>profile_domain_mismatch</code></h3>
|
|
865
|
+
|
|
866
|
+
`422` · Profile domain mismatch · Not retryable · Members: `errors` · Firecrawl: `422` `profile_domain_mismatch` "Profile domain mismatch"
|
|
867
|
+
|
|
868
|
+
A cookie domain or origin host in the uploaded or saved storage state is not one of the profile's `domains` (or a subdomain of one). Add the domain to `domains`, or remove the state for it.
|
|
869
|
+
|
|
870
|
+
<h3 id="profile_conflict"><code>profile_conflict</code></h3>
|
|
871
|
+
|
|
872
|
+
`409` · Profile changed since it was loaded · Not retryable · Members: `current_status` · Firecrawl: `409` `profile_conflict` "Profile changed since it was loaded"
|
|
873
|
+
|
|
874
|
+
The session loaded an older `revision` of the profile than the current one, so saving back would discard newer state. Save with `overwrite_profile: true` to replace it anyway, or reload the profile in a new session.
|
|
875
|
+
|
|
876
|
+
<h3 id="profile_name_taken"><code>profile_name_taken</code></h3>
|
|
877
|
+
|
|
878
|
+
`409` · Profile name taken · Not retryable
|
|
879
|
+
|
|
880
|
+
Another profile in this project already uses this name. Names are unique per project.
|
|
881
|
+
|
|
882
|
+
<h3 id="profile_not_exportable"><code>profile_not_exportable</code></h3>
|
|
883
|
+
|
|
884
|
+
`403` · Profile not exportable · Not retryable
|
|
885
|
+
|
|
886
|
+
The profile holds state that a B3OS browser session saved (`exportable: false`). Such state loads into your organization's sessions, scrapes and render jobs, but it is not exported, even with `vision:profiles:export`. A profile whose state you uploaded is exportable; uploading a new state makes a profile exportable again.
|
|
887
|
+
|
|
888
|
+
<h3 id="crawl_not_found"><code>crawl_not_found</code></h3>
|
|
889
|
+
|
|
890
|
+
`404` · Crawl not found · Not retryable · Firecrawl: `404` `crawl_not_found` "Crawl job not found"
|
|
891
|
+
|
|
892
|
+
No crawl with this `crawl_` ID exists in your project, or it expired.
|
|
893
|
+
|
|
894
|
+
<h3 id="batch_not_found"><code>batch_not_found</code></h3>
|
|
895
|
+
|
|
896
|
+
`404` · Batch scrape not found · Not retryable · Firecrawl: `404` `batch_not_found` "Batch scrape job not found"
|
|
897
|
+
|
|
898
|
+
No batch scrape with this `batch_` ID exists in your project, or it expired.
|
|
899
|
+
|
|
900
|
+
<h3 id="robots_disallowed"><code>robots_disallowed</code></h3>
|
|
901
|
+
|
|
902
|
+
`403` · Disallowed by robots.txt · Not retryable · Firecrawl: `403` `robots_disallowed` "Disallowed by robots.txt"
|
|
903
|
+
|
|
904
|
+
The site's robots.txt or Content Signals disallow fetching this URL for this purpose. Vision checks them only when the request sets `respect_robots: true` (Firecrawl crawls: `ignoreRobotsTxt: false`).
|
|
905
|
+
|
|
906
|
+
<h3 id="content_type_unsupported"><code>content_type_unsupported</code></h3>
|
|
907
|
+
|
|
908
|
+
`422` · Content type not supported · Not retryable · Members: `reason` · Firecrawl: `422` `content_type_unsupported` "Unsupported content type"
|
|
909
|
+
|
|
910
|
+
The URL returned a content type vision can't convert, such as a video, an image or a binary archive (PDFs are read unless `pdf.mode` is `off`). The `reason` member carries the content type. Nothing is billed.
|
|
911
|
+
|
|
912
|
+
<h3 id="pdf_unreadable"><code>pdf_unreadable</code></h3>
|
|
913
|
+
|
|
914
|
+
`422` · PDF could not be read · Not retryable · Members: `reason` · Firecrawl: `422` `PDF_UNREADABLE` "Unreadable PDF"
|
|
915
|
+
|
|
916
|
+
The URL served a PDF that vision could not read. `reason` says why: `damaged` (not a PDF despite its type, or a broken cross-reference table), `unsupported` (a PDF feature the reader does not handle), `too_complex` (reading it went over the reader's memory or CPU limit) or `helper_crashed` (the reader stopped). Nothing is billed.
|
|
917
|
+
|
|
918
|
+
<h3 id="pdf_encrypted"><code>pdf_encrypted</code></h3>
|
|
919
|
+
|
|
920
|
+
`422` · PDF is password-protected · Not retryable · Firecrawl: `422` `PDF_ENCRYPTED` "Encrypted PDF"
|
|
921
|
+
|
|
922
|
+
The PDF needs a password to open, and vision does not take one. A PDF with only an owner password (one that restricts printing or copying) opens and is read. Nothing is billed.
|
|
923
|
+
|
|
924
|
+
<h3 id="navigation_failed"><code>navigation_failed</code></h3>
|
|
925
|
+
|
|
926
|
+
`502` · Navigation failed · Retryable · Members: `reason` · Firecrawl: `502` `navigation_failed` "Bad Gateway"
|
|
927
|
+
|
|
928
|
+
The browser could not load the page (a `net::ERR_*` failure, a crash, or an aborted navigation). The `reason` member carries the browser's error string.
|
|
929
|
+
|
|
930
|
+
<h3 id="scrape_timeout"><code>scrape_timeout</code></h3>
|
|
931
|
+
|
|
932
|
+
`504` · Scrape timed out · Retryable · Firecrawl: `408` `SCRAPE_TIMEOUT` "Request Timeout"
|
|
933
|
+
|
|
934
|
+
The page did not finish loading and converting within `timeout_ms`. Retry with a larger timeout, or use `engine: "fetch"` for pages that do not need JavaScript.
|
|
935
|
+
|
|
936
|
+
<h3 id="target_not_found"><code>target_not_found</code></h3>
|
|
937
|
+
|
|
938
|
+
`422` · Target not found · Not retryable · Members: `step` · Firecrawl: `422` `target_not_found` "Action target not found"
|
|
939
|
+
|
|
940
|
+
No element matched the action's target (CSS `selector`, visible `text`, or `role` plus accessible `name`) within the wait time, or the element stayed outside the viewport after scrolling it into view. Used by browser actions (`act`, scrape `actions`) and by render scripts and element screenshots.
|
|
941
|
+
|
|
942
|
+
<h3 id="target_covered"><code>target_covered</code></h3>
|
|
943
|
+
|
|
944
|
+
`422` · Target covered · Not retryable · Members: `step`, `reason` · Firecrawl: `422` `target_covered` "Action target covered"
|
|
945
|
+
|
|
946
|
+
A click's target was found, but another element is drawn over the point the click would press (a consent banner, a modal, an overlay), so the click would land on that element. Before every click vision checks what the page draws at the target's centre; a band fixed or sticky to the window gets one scroll to clear the target first, and a cover gets half a second to go away. `detail` names the cover (tag, id, classes and its first 40 characters of text) and `reason` is `fixed` (a band fixed or sticky to the window) or `element`. No input event was sent. Dismiss the cover first, for example by clicking its close or reject button, or target an element it does not cover.
|
|
947
|
+
|
|
948
|
+
<h3 id="stale_ref"><code>stale_ref</code></h3>
|
|
949
|
+
|
|
950
|
+
`422` · Stale ref · Not retryable · Members: `step` · Firecrawl: `422` `stale_ref` "Action target ref is stale"
|
|
951
|
+
|
|
952
|
+
An action's `target.ref` no longer names an element of the page: the element was removed after the snapshot (a re-render can replace it with a look-alike), the page navigated since, or the ref comes from another page. vision never looks for the element again by its text or role. `detail` says which. Take a new `snapshot` and use a ref from it.
|
|
953
|
+
|
|
954
|
+
<h3 id="act_step_failed"><code>act_step_failed</code></h3>
|
|
955
|
+
|
|
956
|
+
`422` · Browser action failed · Not retryable · Members: `step` · Firecrawl: `422` `act_step_failed` "Action failed"
|
|
957
|
+
|
|
958
|
+
A browser action in an `act` batch failed (for example `evaluate` threw). The `step` member is the zero-based index of the failed action; results of earlier actions are still returned.
|
|
959
|
+
|
|
960
|
+
<h3 id="cdp_method_blocked"><code>cdp_method_blocked</code></h3>
|
|
961
|
+
|
|
962
|
+
`403` · CDP method not allowed · Not retryable
|
|
963
|
+
|
|
964
|
+
Returned as a CDP error on the session's CDP socket, not as an HTTP status: `error.data` is the code (a string, as in Chrome's own errors) and `error.b3os` holds `code` and `status`. The proxy blocks `Browser.*` except the version, permission, window and download methods CDP clients such as Playwright and Puppeteer send (downloads are kept in the session's own directory), `SystemInfo.*`, targets outside the session, host file access, and navigation to anything but `http:`, `https:` and `about:blank` (`file:`, `chrome:`, `chrome-extension:`, `view-source:`, `devtools:`, `data:`, ...).
|
|
965
|
+
|
|
966
|
+
<h3 id="extraction_failed"><code>extraction_failed</code></h3>
|
|
967
|
+
|
|
968
|
+
`502` · Extraction failed · Retryable · Members: `reason`, `errors`, `pages` · Firecrawl: `502` `extraction_failed` "Extraction failed"
|
|
969
|
+
|
|
970
|
+
The model could not produce JSON that matches your schema. An extract job's `reason` says why: `invalid_answer` (the answer did not match the schema after one retry with the errors; `errors[]` lists them), `answer_too_long` (the answer was cut at the token limit or was not JSON, twice), `no_pages` (no URL could be scraped; `pages` has each page's error) or `model_unavailable` (the model failed or did not answer in time). Simplify the schema or the prompt, or retry. Pages read and tokens used stay billed.
|
|
971
|
+
|
|
972
|
+
<h3 id="extract_fields_missing"><code>extract_fields_missing</code></h3>
|
|
973
|
+
|
|
974
|
+
`422` · Extraction incomplete · Not retryable · Members: `errors`, `partial_data`, `pages` · Firecrawl: `422` `extract_fields_missing` "Extraction incomplete"
|
|
975
|
+
|
|
976
|
+
Fields your schema requires are not stated in any of the pages, so an extract job could not fill them. `errors[]` has one item per missing field (its JSON pointer, such as `/plans/0/usd_per_month`), and `partial_data` the object without them. The job is not retried, since a retry could only invent the values. Make the fields optional, add a page that states them, or change the prompt. The pages read and the tokens used stay billed.
|
|
977
|
+
|
|
978
|
+
<h3 id="scrape_no_cached_data"><code>scrape_no_cached_data</code></h3>
|
|
979
|
+
|
|
980
|
+
`404` · No cached copy · Not retryable · Firecrawl: `404` `SCRAPE_NO_CACHED_DATA` "No cached data"
|
|
981
|
+
|
|
982
|
+
The scrape asked to be answered from the page cache only (Firecrawl `minAge`), and this node holds no cached copy of the URL that satisfies it. Scrape without the cache-only option to fetch the page.
|
|
983
|
+
|
|
984
|
+
<h3 id="scrape_lockdown_cache_miss"><code>scrape_lockdown_cache_miss</code></h3>
|
|
985
|
+
|
|
986
|
+
`404` · Not in the cache (lockdown) · Not retryable · Firecrawl: `404` `SCRAPE_LOCKDOWN_CACHE_MISS` "No cached data (lockdown)"
|
|
987
|
+
|
|
988
|
+
A `lockdown` scrape (Firecrawl compatibility) is answered from the page cache only and never reaches the target; this node holds no cached copy of the URL. Nothing was fetched and nothing is billed.
|
|
989
|
+
|
|
990
|
+
<h3 id="search_unavailable"><code>search_unavailable</code></h3>
|
|
991
|
+
|
|
992
|
+
`503` · Search unavailable · Retryable · Firecrawl: `503` `search_unavailable` "Search unavailable"
|
|
993
|
+
|
|
994
|
+
This node cannot search right now: it has no key for its search provider, or the provider refused the node's key (the node logs it for its operator). Nothing was sent and nothing is billed. Scrape URLs you already know with `POST /v1/vision/scrape`.
|
|
995
|
+
|
|
996
|
+
<h3 id="search_failed"><code>search_failed</code></h3>
|
|
997
|
+
|
|
998
|
+
`502` · Search failed · Retryable · Members: `retry_after_s` · Firecrawl: `502` `search_failed` "Search failed"
|
|
999
|
+
|
|
1000
|
+
The search provider did not answer in time, was busy or answered with an error. Nothing is billed. Retry after `Retry-After` seconds.
|
|
1001
|
+
|
|
1002
|
+
<h3 id="search_answer_too_large"><code>search_answer_too_large</code></h3>
|
|
1003
|
+
|
|
1004
|
+
`413` · Search answer too large · Not retryable · Firecrawl: `413` `search_answer_too_large` "Search answer too large"
|
|
1005
|
+
|
|
1006
|
+
A search holds at most 64 MiB of scraped pages. This result's page did not fit, so its `error` carries this code instead and it is not billed. Scrape the URL with `POST /v1/vision/scrape` or `POST /v1/vision/batches`, or ask for fewer formats.
|
|
1007
|
+
|
|
1008
|
+
<h3 id="proxy_unreachable"><code>proxy_unreachable</code></h3>
|
|
1009
|
+
|
|
1010
|
+
`502` · Proxy unreachable · Retryable
|
|
1011
|
+
|
|
1012
|
+
The scrape was to leave through a proxy (`proxy`), and the node could not connect to it, or it closed the connection before it answered. For your own proxy, check that it is up and reachable from the internet at the host and port you gave; on a read from a residential address, retry. Nothing is billed.
|
|
1013
|
+
|
|
1014
|
+
<h3 id="proxy_auth_failed"><code>proxy_auth_failed</code></h3>
|
|
1015
|
+
|
|
1016
|
+
`502` · Proxy authentication failed · Not retryable
|
|
1017
|
+
|
|
1018
|
+
The proxy the scrape was to leave through answered `407 Proxy Authentication Required`, or the vault connection named in `proxy.connection` holds no username and password. Fix the connection's `username` and `password` (a `basic` connection) and try again. Nothing is billed.
|
|
1019
|
+
|
|
1020
|
+
<h3 id="proxy_refused"><code>proxy_refused</code></h3>
|
|
1021
|
+
|
|
1022
|
+
`502` · Proxy refused the request · Not retryable · Members: `upstream_status`
|
|
1023
|
+
|
|
1024
|
+
The proxy the scrape was to leave through answered the node's `CONNECT` with a status that is not 2xx and not 407. `upstream_status` is the status it answered. On a read from a residential address, a site the residential exit refuses comes back this way too. Nothing is billed.
|
|
1025
|
+
|
|
1026
|
+
<h3 id="proxy_not_allowed"><code>proxy_not_allowed</code></h3>
|
|
1027
|
+
|
|
1028
|
+
`403` · Not read from a residential address · Not retryable · Members: `reason`
|
|
1029
|
+
|
|
1030
|
+
Vision does not read this page from a residential address. `reason` says why: `credentials` (the request loads a profile, carries a `Cookie`, `Authorization` or other credential header, or runs actions: residential reads take public pages only), `opt_out` (the site is on the opt-out list for residential reads) or `category` (the site is in a category vision never reads from a residential address, named in `detail`). Nothing was sent and nothing is billed. Scrape with `proxy: "none"` or your own proxy instead.
|
|
1031
|
+
|
|
1032
|
+
## Render
|
|
1033
|
+
|
|
1034
|
+
<h3 id="screenshot_not_found"><code>screenshot_not_found</code></h3>
|
|
1035
|
+
|
|
1036
|
+
`404` · Screenshot not found · Not retryable
|
|
1037
|
+
|
|
1038
|
+
No screenshot with this `shot_` ID exists in your project, or it expired.
|
|
1039
|
+
|
|
1040
|
+
<h3 id="video_not_found"><code>video_not_found</code></h3>
|
|
1041
|
+
|
|
1042
|
+
`404` · Video not found · Not retryable
|
|
1043
|
+
|
|
1044
|
+
No video with this `vid_` ID exists in your project, or it expired.
|
|
1045
|
+
|
|
1046
|
+
<h3 id="video_not_ready"><code>video_not_ready</code></h3>
|
|
1047
|
+
|
|
1048
|
+
`409` · Video not ready · Retryable · Members: `current_status`
|
|
1049
|
+
|
|
1050
|
+
An inspection names a video (`video_id`) that has not succeeded: it is queued or running, or it failed or was canceled. `current_status` says which. Inspect a video once it has succeeded.
|
|
1051
|
+
|
|
1052
|
+
<h3 id="artifact_not_found"><code>artifact_not_found</code></h3>
|
|
1053
|
+
|
|
1054
|
+
`404` · Artifact not found · Not retryable
|
|
1055
|
+
|
|
1056
|
+
No artifact with this `art_` ID exists in your project.
|
|
1057
|
+
|
|
1058
|
+
<h3 id="artifact_expired"><code>artifact_expired</code></h3>
|
|
1059
|
+
|
|
1060
|
+
`410` · Artifact expired · Not retryable
|
|
1061
|
+
|
|
1062
|
+
The artifact was deleted at the end of its retention period (7 days by default). Render it again.
|
|
1063
|
+
|
|
1064
|
+
<h3 id="capture_failed"><code>capture_failed</code></h3>
|
|
1065
|
+
|
|
1066
|
+
`502` · Capture failed · Retryable · Members: `reason`
|
|
1067
|
+
|
|
1068
|
+
The page could not be loaded or captured (navigation error, crash, or a page that never became ready). `reason` carries the browser's error.
|
|
1069
|
+
|
|
1070
|
+
<h3 id="script_invalid"><code>script_invalid</code></h3>
|
|
1071
|
+
|
|
1072
|
+
`422` · Invalid video script · Not retryable · Members: `errors`
|
|
1073
|
+
|
|
1074
|
+
The video script, or an inspection's `steps`, failed validation before recording started. `errors[]` points at the failing beats and steps.
|
|
1075
|
+
|
|
1076
|
+
<h3 id="script_step_failed"><code>script_step_failed</code></h3>
|
|
1077
|
+
|
|
1078
|
+
`422` · Script step failed · Not retryable · Members: `step`
|
|
1079
|
+
|
|
1080
|
+
A step in the video script failed during recording (for example its target never appeared). Used as the video job's `error`; `step` is the path of the failed step, such as `beats/2/do/0`. An inspection answers with it at once (`step` such as `steps/1`), with no report and no sheet, and bills nothing.
|
|
1081
|
+
|
|
1082
|
+
<h3 id="profile_expired"><code>profile_expired</code></h3>
|
|
1083
|
+
|
|
1084
|
+
`422` · Profile no longer signs in · Not retryable
|
|
1085
|
+
|
|
1086
|
+
The page was still signed out after the request's browser profile loaded: it showed a sign-in form (a password, email or one-time-code form), answered 401 or 403, moved to a sign-in page, or, for a screenshot, a sign-in wall covered it; `detail` says which. The profile's session has ended, or it does not sign in to this site. A screenshot answers with it; a video ends with it as the job's `error` before any step runs. Nothing is captured or billed. Sign in again in a browser session and save the profile (`POST /v1/vision/sessions/{session_id}/profile`), or upload a new state, then retry.
|
|
1087
|
+
|
|
1088
|
+
<h3 id="restyle_unavailable"><code>restyle_unavailable</code></h3>
|
|
1089
|
+
|
|
1090
|
+
`409` · Restyle not available · Not retryable
|
|
1091
|
+
|
|
1092
|
+
The source video has no archived raw capture: it did not succeed, or its raw capture expired. Record the video again.
|
|
1093
|
+
|
|
1094
|
+
<h3 id="background_unavailable"><code>background_unavailable</code></h3>
|
|
1095
|
+
|
|
1096
|
+
`503` · Background unavailable · Retryable
|
|
1097
|
+
|
|
1098
|
+
The style names a library image (`overrides.background_ref`) that the render node could not load from B3OS's storage just now. Nothing was billed; retry after `Retry-After`.
|
|
1099
|
+
|
|
1100
|
+
<h3 id="style_invalid"><code>style_invalid</code></h3>
|
|
1101
|
+
|
|
1102
|
+
`422` · Invalid style · Not retryable · Members: `errors`
|
|
1103
|
+
|
|
1104
|
+
A style value is unknown or malformed (preset, frame, font, color or gradient). `errors[]` points at it.
|
|
1105
|
+
|
|
1106
|
+
<h3 id="alias_not_found"><code>alias_not_found</code></h3>
|
|
1107
|
+
|
|
1108
|
+
`404` · Alias not found · Not retryable
|
|
1109
|
+
|
|
1110
|
+
No alias with this name exists in your project. An alias is made by the first video created or restyled with `alias: <name>`, or by `PUT /v1/render/aliases/{alias}`.
|
|
1111
|
+
|
|
1112
|
+
<h3 id="share_not_found"><code>share_not_found</code></h3>
|
|
1113
|
+
|
|
1114
|
+
`404` · Share not found · Not retryable
|
|
1115
|
+
|
|
1116
|
+
Answered by `usercontent.b3os.org` for a share's files and its oEmbed answer when no share has this ID: it was never made, it was stopped, its video expired or was deleted, or B3 took it down. The share page itself answers a short HTML page instead (404, 410 or 451).
|
|
1117
|
+
|
|
1118
|
+
<h3 id="share_blocked"><code>share_blocked</code></h3>
|
|
1119
|
+
|
|
1120
|
+
`403` · Share taken down · Not retryable
|
|
1121
|
+
|
|
1122
|
+
B3 took this video's share down. To ask about it, write to abuse@b3os.org. The video itself stays yours until it expires; it cannot be shared again.
|
|
1123
|
+
|
|
1124
|
+
<h3 id="goal_unplanned"><code>goal_unplanned</code></h3>
|
|
1125
|
+
|
|
1126
|
+
`422` · Goal could not be planned · Not retryable · Members: `reason`
|
|
1127
|
+
|
|
1128
|
+
Used as a video job's `error` when the video was created with `goal` and the node could not plan its beats. `reason` says why: `page_unreadable` (vision could not read the start page; the detail is vision's), `no_controls` (no buttons, links or fields on the start page), `no_model` (no chat model with JSON Schema answers on the node), `model_failed` (the model did not answer), `answer_cut_off`, `answer_invalid` (not JSON, or no beats that act on the page), `steps_unrunnable` (the drafted steps did not run on the start page) or `timed_out` (planning took longer than the `render.goal.plan_s` limit). No `render.video_s` is billed; the vision pages and model tokens planning used are. Give `beats`, or a goal that names something on that page.
|
|
1129
|
+
|
|
1130
|
+
## Sandboxes
|
|
1131
|
+
|
|
1132
|
+
<h3 id="sandbox_not_found"><code>sandbox_not_found</code></h3>
|
|
1133
|
+
|
|
1134
|
+
`404` · Sandbox not found · Not retryable
|
|
1135
|
+
|
|
1136
|
+
No sandbox with this `sbx_` ID exists in your project.
|
|
1137
|
+
|
|
1138
|
+
<h3 id="sandbox_not_running"><code>sandbox_not_running</code></h3>
|
|
1139
|
+
|
|
1140
|
+
`409` · Sandbox not running · Not retryable · Members: `current_status`
|
|
1141
|
+
|
|
1142
|
+
The operation needs a running sandbox, but it is paused or stopped. `current_status` shows which. Resume a paused sandbox with `POST /v1/sandboxes/{sandbox_id}/resume`; a stopped sandbox cannot be restarted.
|
|
1143
|
+
|
|
1144
|
+
<h3 id="lease_holder_changed"><code>lease_holder_changed</code></h3>
|
|
1145
|
+
|
|
1146
|
+
`409` · Lease holder changed · Not retryable · Members: `holder`
|
|
1147
|
+
|
|
1148
|
+
`PUT /v1/sandboxes/{sandbox_id}/lease` named the holder it read (`expect_holder`: a sandbox ID, or `null` for none), and another sandbox holds the key now (`holder`, or `null` when none does). Nothing changed. Read the holder again, and take the key from it only if that is still what you mean to do.
|
|
1149
|
+
|
|
1150
|
+
<h3 id="template_not_found"><code>template_not_found</code></h3>
|
|
1151
|
+
|
|
1152
|
+
`404` · Template not found · Not retryable
|
|
1153
|
+
|
|
1154
|
+
No template with this name or `tpl_` ID exists. `GET /v1/sandboxes/templates` lists them.
|
|
1155
|
+
|
|
1156
|
+
<h3 id="memory_too_small"><code>memory_too_small</code></h3>
|
|
1157
|
+
|
|
1158
|
+
`422` · Memory too small for this template · Not retryable
|
|
1159
|
+
|
|
1160
|
+
`memory_mib` is below what this template needs on this node. The message names the minimum; create the sandbox with at least that much memory.
|
|
1161
|
+
|
|
1162
|
+
<h3 id="template_warmup_failed"><code>template_warmup_failed</code></h3>
|
|
1163
|
+
|
|
1164
|
+
`503` · Template could not be prepared at this size · Retryable · Members: `retry_after_s`
|
|
1165
|
+
|
|
1166
|
+
The template could not be prepared at the memory size you asked for. Only this request failed; the template still serves its listed sizes. Use one of the sizes `GET /v1/sandboxes/templates/{name}` lists, or retry after `Retry-After` seconds.
|
|
1167
|
+
|
|
1168
|
+
<h3 id="volume_not_found"><code>volume_not_found</code></h3>
|
|
1169
|
+
|
|
1170
|
+
`404` · Volume not found · Not retryable
|
|
1171
|
+
|
|
1172
|
+
No volume with this `vol_` ID or name exists in your project on this node.
|
|
1173
|
+
|
|
1174
|
+
<h3 id="volume_name_taken"><code>volume_name_taken</code></h3>
|
|
1175
|
+
|
|
1176
|
+
`409` · Volume name taken · Not retryable
|
|
1177
|
+
|
|
1178
|
+
Your project has a volume with this name. A deleted volume keeps its name until it is purged: restore it, or purge it with `POST /v1/sandboxes/volumes/{volume_id}/purge`.
|
|
1179
|
+
|
|
1180
|
+
<h3 id="volume_in_use"><code>volume_in_use</code></h3>
|
|
1181
|
+
|
|
1182
|
+
`409` · Volume in use · Retryable · Members: `holder`
|
|
1183
|
+
|
|
1184
|
+
Another running or paused sandbox holds the volume (`holder`, its ID; `null` when the node's own lock refused it while a sandbox's microVM was still stopping). A volume has one writer. Stop or delete the holder first; a holder that is stopping is waited for up to 30 seconds before this answer.
|
|
1185
|
+
|
|
1186
|
+
<h3 id="volume_attached"><code>volume_attached</code></h3>
|
|
1187
|
+
|
|
1188
|
+
`409` · Volume attached · Not retryable
|
|
1189
|
+
|
|
1190
|
+
A sandbox holds the volume, which rules out deleting, purging or growing it; or the sandbox holds a volume, which rules out a snapshot or a fork of it (its memory has the volume's file system mounted, so a restore would be a second writer). Stop or delete the sandbox first.
|
|
1191
|
+
|
|
1192
|
+
<h3 id="volume_drive_missing"><code>volume_drive_missing</code></h3>
|
|
1193
|
+
|
|
1194
|
+
`409` · Snapshot predates volumes · Not retryable
|
|
1195
|
+
|
|
1196
|
+
The snapshot was taken before this node had volumes, and its sandbox has no drive to mount one on. Take the snapshot again (a deploy builds again) and create the sandbox from the new one.
|
|
1197
|
+
|
|
1198
|
+
<h3 id="volume_unmountable"><code>volume_unmountable</code></h3>
|
|
1199
|
+
|
|
1200
|
+
`409` · Volume could not be mounted · Not retryable
|
|
1201
|
+
|
|
1202
|
+
The sandbox's guest agent could not mount the volume as asked (the detail says why: a mount path it may not use, a file system it could not mount), or, at a start with `restart`, a volume the sandbox holds is no longer mounted in its guest, and the sandbox was stopped as failed so its service never writes to the root disk. Nothing was started.
|
|
1203
|
+
|
|
1204
|
+
<h3 id="snapshot_not_found"><code>snapshot_not_found</code></h3>
|
|
1205
|
+
|
|
1206
|
+
`404` · Snapshot not found · Not retryable
|
|
1207
|
+
|
|
1208
|
+
No snapshot with this `snap_` ID exists in your project.
|
|
1209
|
+
|
|
1210
|
+
<h3 id="snapshot_damaged"><code>snapshot_damaged</code></h3>
|
|
1211
|
+
|
|
1212
|
+
`409` · Snapshot damaged · Not retryable
|
|
1213
|
+
|
|
1214
|
+
The snapshot's files on the node are not the sizes recorded when it was taken (a host crash cut them off before they reached the disk). The snapshot is marked `failed` and cannot be restored; delete it and take a new one.
|
|
1215
|
+
|
|
1216
|
+
<h3 id="file_not_found"><code>file_not_found</code></h3>
|
|
1217
|
+
|
|
1218
|
+
`404` · File not found · Not retryable
|
|
1219
|
+
|
|
1220
|
+
Nothing exists at this path inside the sandbox.
|
|
1221
|
+
|
|
1222
|
+
<h3 id="path_invalid"><code>path_invalid</code></h3>
|
|
1223
|
+
|
|
1224
|
+
`422` · Invalid path · Not retryable
|
|
1225
|
+
|
|
1226
|
+
The path must be absolute, at most 4,096 bytes, and contain no NUL bytes.
|
|
1227
|
+
|
|
1228
|
+
<h3 id="not_a_directory"><code>not_a_directory</code></h3>
|
|
1229
|
+
|
|
1230
|
+
`422` · Not a directory · Not retryable
|
|
1231
|
+
|
|
1232
|
+
A component of the path is a file, so the operation cannot treat it as a directory.
|
|
1233
|
+
|
|
1234
|
+
<h3 id="file_exists"><code>file_exists</code></h3>
|
|
1235
|
+
|
|
1236
|
+
`409` · File exists · Not retryable
|
|
1237
|
+
|
|
1238
|
+
Something already exists at the path a move or mkdir would create. Pass `overwrite: true` to a move to replace a file, or pick another path.
|
|
1239
|
+
|
|
1240
|
+
<h3 id="directory_not_empty"><code>directory_not_empty</code></h3>
|
|
1241
|
+
|
|
1242
|
+
`409` · Directory not empty · Not retryable
|
|
1243
|
+
|
|
1244
|
+
The directory holds files. Delete it with `recursive=1`, or empty it first; a move replaces only an empty directory.
|
|
1245
|
+
|
|
1246
|
+
<h3 id="guest_outdated"><code>guest_outdated</code></h3>
|
|
1247
|
+
|
|
1248
|
+
`409` · Sandbox agent predates the operation · Not retryable
|
|
1249
|
+
|
|
1250
|
+
The agent inside this sandbox (or inside the snapshot being restored), or this node's image of its template, was built before the operation existed. For a file operation, sandboxes created after the template's next image update have it; until then run the equivalent command with `POST /v1/sandboxes/{sandbox_id}/exec` (`rm`, `mv`, `mkdir -p`, `stat`). For a fork or a snapshot restore that would reset the `browser` template's Chrome (`clone_reset: full`, the default), ask for `clone_reset: none`, which keeps Chrome as the snapshot had it. Once the node serves an image of the template with the reset, sandboxes created after that can be forked and snapshotted with `full`. A sandbox created before keeps its old agent, and so does a snapshot of it; a snapshot taken before the update cannot be restored after it at all (`409 conflict`).
|
|
1251
|
+
|
|
1252
|
+
<h3 id="file_too_large"><code>file_too_large</code></h3>
|
|
1253
|
+
|
|
1254
|
+
`413` · File too large · Not retryable
|
|
1255
|
+
|
|
1256
|
+
The file exceeds the 64 MiB per-request transfer limit. Split it, or fetch it from inside the sandbox.
|
|
1257
|
+
|
|
1258
|
+
<h3 id="port_not_exposed"><code>port_not_exposed</code></h3>
|
|
1259
|
+
|
|
1260
|
+
`404` · Port not exposed · Not retryable
|
|
1261
|
+
|
|
1262
|
+
The port is not in the sandbox's `ports` list. Ports are declared when the sandbox is created.
|
|
1263
|
+
|
|
1264
|
+
<h3 id="app_token_invalid"><code>app_token_invalid</code></h3>
|
|
1265
|
+
|
|
1266
|
+
`403` · App address credential refused · Not retryable · Members: `reason`
|
|
1267
|
+
|
|
1268
|
+
The node refused a request for an app address (`<label>.b3os.io`) that the apps Worker forwarded to a sandbox port: the `x-b3os-app-host` and `x-b3os-app-token` headers of `sandboxesProxyPortGet` in host mode. The `reason` member says which check failed: `host` (the app host is not `<label>.b3os.io`, or the node serves no app addresses), `missing` (no token), `malformed`, `unknown_key` (signed with an edge key this node does not trust), `signature` (it does not verify for this node, sandbox, port and label), `not_yet_valid` (issued in the future), `expired`, `lifetime` (it lives longer than 900 seconds) or `mismatch` (the sandbox is not in the token's organization and project). The apps Worker resolves the address again and retries once; people see its own page, never this problem.
|
|
1269
|
+
|
|
1270
|
+
<h3 id="upstream_first_byte_timeout"><code>upstream_first_byte_timeout</code></h3>
|
|
1271
|
+
|
|
1272
|
+
`504` · Upstream first byte timeout · Not retryable
|
|
1273
|
+
|
|
1274
|
+
The app on the port did not start its response (status and headers) within the port's `first_byte_s` (65 seconds by default, 5 to 95 seconds when the sandbox declares it), so the preview stopped waiting; the detail names the limit. Sending the same request again waits as long again. Stream the response instead (send the headers at once, then the body as it is ready: a streamed body may stay open up to an hour), or start the work in the background, answer at once with an ID and let the client poll for the result. A port that needs longer before its first byte can ask for more with `ports[].first_byte_s` when the sandbox is created.
|
|
1275
|
+
|
|
1276
|
+
<h3 id="process_not_found"><code>process_not_found</code></h3>
|
|
1277
|
+
|
|
1278
|
+
`404` · Process not found · Not retryable
|
|
1279
|
+
|
|
1280
|
+
No background process with this ID is running in the sandbox.
|
|
1281
|
+
|
|
1282
|
+
<h3 id="kernel_unavailable"><code>kernel_unavailable</code></h3>
|
|
1283
|
+
|
|
1284
|
+
`409` · Code kernel unavailable · Not retryable
|
|
1285
|
+
|
|
1286
|
+
`run_code` needs a sandbox created from the `code-interpreter` template.
|
|
1287
|
+
|
|
1288
|
+
<h3 id="language_unsupported"><code>language_unsupported</code></h3>
|
|
1289
|
+
|
|
1290
|
+
`422` · Language not supported · Not retryable
|
|
1291
|
+
|
|
1292
|
+
The template's kernel does not run this language. `code-interpreter` runs `python` and `javascript`.
|
|
1293
|
+
|
|
1294
|
+
<h3 id="shell_unavailable"><code>shell_unavailable</code></h3>
|
|
1295
|
+
|
|
1296
|
+
`422` · Shell unavailable · Not retryable
|
|
1297
|
+
|
|
1298
|
+
The sandbox was created from an image that has no shell at the path the request needs (the detail names it): a command given as one string (shell form) and a terminal both need `/bin/sh` (a terminal uses the image user's login shell when the image's `/etc/passwd` names one). Give the command as an argument list (`argv`), which runs without a shell, or import an image that ships one.
|
|
1299
|
+
|
|
1300
|
+
<h3 id="guest_unreachable"><code>guest_unreachable</code></h3>
|
|
1301
|
+
|
|
1302
|
+
`502` · Sandbox agent unreachable · Retryable
|
|
1303
|
+
|
|
1304
|
+
The agent inside the microVM did not answer (the guest is hung or out of memory). A command that was already handed to the agent may have run, and the detail says so: check its effect before you run it again (the SDKs never resend it themselves). Otherwise retry once; if it repeats, delete the sandbox and create a new one.
|
|
1305
|
+
|
|
1306
|
+
<h3 id="snapshot_failed"><code>snapshot_failed</code></h3>
|
|
1307
|
+
|
|
1308
|
+
`500` · Snapshot failed · Retryable
|
|
1309
|
+
|
|
1310
|
+
Writing the snapshot failed. The sandbox keeps running unchanged; retry the snapshot.
|
|
1311
|
+
|
|
1312
|
+
<h3 id="fork_unavailable"><code>fork_unavailable</code></h3>
|
|
1313
|
+
|
|
1314
|
+
`409` · Fork not available · Not retryable
|
|
1315
|
+
|
|
1316
|
+
Forking needs a sandbox created with `forkable: true`, which enables dirty-page tracking.
|
|
1317
|
+
|
|
1318
|
+
<h3 id="swarm_not_found"><code>swarm_not_found</code></h3>
|
|
1319
|
+
|
|
1320
|
+
`404` · Swarm not found · Not retryable
|
|
1321
|
+
|
|
1322
|
+
No swarm with this `swm_` ID exists in your project. Swarms are kept for 7 days after they finish.
|
|
1323
|
+
|
|
1324
|
+
## E2b compatibility
|
|
1325
|
+
|
|
1326
|
+
<h3 id="envd_token_invalid"><code>envd_token_invalid</code></h3>
|
|
1327
|
+
|
|
1328
|
+
`401` · envd access token invalid · Not retryable
|
|
1329
|
+
|
|
1330
|
+
An E2B envd call (`/compat/e2b/envd/*`) without a valid envd access token for the sandbox `E2b-Sandbox-Id` names. The answer is the same for every reason: the token is missing, wrong, older than 1 hour or replaced by a connect more than 60 seconds ago; the sandbox is missing, ended or another organization's; the key that minted the token is revoked; or the request is a signed file URL (`signature`, which B3OS does not support). Get a new token with `Sandbox.connect`.
|
|
1331
|
+
|
|
1332
|
+
## Images
|
|
1333
|
+
|
|
1334
|
+
<h3 id="image_not_found"><code>image_not_found</code></h3>
|
|
1335
|
+
|
|
1336
|
+
`404` · Image not found · Not retryable
|
|
1337
|
+
|
|
1338
|
+
No image with this `img_` ID exists in your project. Another project's image answers this too: images, their templates and their warm snapshots belong to the project that imported them.
|
|
1339
|
+
|
|
1340
|
+
<h3 id="image_not_ready"><code>image_not_ready</code></h3>
|
|
1341
|
+
|
|
1342
|
+
`409` · Image not ready · Retryable · Members: `current_status`
|
|
1343
|
+
|
|
1344
|
+
A sandbox was asked for from an image that is not `ready`. `current_status` says where it is: `queued`, `pulling`, `flattening` and `warming` are an import in progress, and `rebuilding` is the node rebuilding the image's warm snapshot after a release. Wait with `GET /v1/images/{image_id}?wait=30` and create again once it is `ready`. A `failed` image needs a new import (`POST /v1/images` with the same `ref`); an `evicted` one imports again the same way.
|
|
1345
|
+
|
|
1346
|
+
<h3 id="image_in_use"><code>image_in_use</code></h3>
|
|
1347
|
+
|
|
1348
|
+
`409` · Image in use · Not retryable
|
|
1349
|
+
|
|
1350
|
+
The image cannot be deleted while a running or paused sandbox, or a snapshot taken from one, uses its template. Delete those sandboxes and snapshots first. The same holds for importing a `failed` image again while it keeps its root file system (a failed rebuild of its warm snapshot): the new import would replace a file system they use.
|
|
1351
|
+
|
|
1352
|
+
<h3 id="image_refused"><code>image_refused</code></h3>
|
|
1353
|
+
|
|
1354
|
+
`422` · Image refused · Not retryable · Members: `reason`
|
|
1355
|
+
|
|
1356
|
+
The registry answered, but the image cannot be imported. `reason` says why: `ref_invalid` (the reference is not `[registry/]repository[:tag|@sha256:digest]` with a lowercase repository, a tag of at most 128 characters, and at most 512 bytes in all), `not_found` (the registry has no such repository, tag or digest), `platform` (no `linux/amd64` image in the index), `media_type` (a layer that is not a tar, gzip or zstd tar, or a foreign layer), `manifest_too_large` or `config_too_large` (past the node's caps, 1 MiB each by default), `layers` (more layers than `images.layers_max`), `too_large` (the compressed layers add up to more than `images.rootfs_max`).
|
|
1357
|
+
|
|
1358
|
+
<h3 id="import_failed"><code>import_failed</code></h3>
|
|
1359
|
+
|
|
1360
|
+
`502` · Import failed · Retryable
|
|
1361
|
+
|
|
1362
|
+
The code a `failed` image carries in its `error.code`; it is never an answer to a request. `error.stage` says where the import stopped: `resolve` (the registry, after the import was accepted), `pull` (a layer's bytes did not match its digest or size, or the registry failed mid-layer), `flatten` (the layers could not be unpacked into one file system: a `..` path, an entry or path past the caps, the output full, the time limit), `adopt` (the node could not store the result), `golden` (the warm-up failed or the warm snapshot could not be taken), `rebuild` (a rebuild of the warm snapshot after a node release failed), `interrupted` (the node's daemon restarted during the import). `error.detail` says what happened and `error.output` holds the last 4 KiB of output. Nothing of a failed import is kept. After `rebuild` the image keeps its root file system and the node tries it again at its next start. Import again with `POST /v1/images`; the same request reuses the image's ID.
|
|
1363
|
+
|
|
1364
|
+
## Agents
|
|
1365
|
+
|
|
1366
|
+
<h3 id="agent_not_found"><code>agent_not_found</code></h3>
|
|
1367
|
+
|
|
1368
|
+
`404` · Agent not found · Not retryable
|
|
1369
|
+
|
|
1370
|
+
No agent with this name or `agt_` ID exists in your project. Another project's agent answers this too: agents, their instances and their sessions belong to the project that created them.
|
|
1371
|
+
|
|
1372
|
+
<h3 id="agent_exists"><code>agent_exists</code></h3>
|
|
1373
|
+
|
|
1374
|
+
`409` · Agent exists · Not retryable
|
|
1375
|
+
|
|
1376
|
+
Your project already has an agent with this `name`. Names are unique within a project; update the existing agent with `PATCH /v1/agents/{agent}`, or choose another name.
|
|
1377
|
+
|
|
1378
|
+
<h3 id="instance_not_found"><code>instance_not_found</code></h3>
|
|
1379
|
+
|
|
1380
|
+
`404` · Instance not found · Not retryable
|
|
1381
|
+
|
|
1382
|
+
The agent has no instance for this key. A message makes one unless it sends `create: false`, and `PUT /v1/agents/{agent}/instances/{key}` makes one explicitly.
|
|
1383
|
+
|
|
1384
|
+
<h3 id="instance_key_invalid"><code>instance_key_invalid</code></h3>
|
|
1385
|
+
|
|
1386
|
+
`400` · Instance key invalid · Not retryable
|
|
1387
|
+
|
|
1388
|
+
An instance key is 1 to 128 characters of `A-Z a-z 0-9 . _ : -`. The key is stored and shown as written, so never use a credential or a personal detail as a key: use your own conversation, user or tenant ID.
|
|
1389
|
+
|
|
1390
|
+
<h3 id="instance_busy"><code>instance_busy</code></h3>
|
|
1391
|
+
|
|
1392
|
+
`429` · Instance busy · Retryable · Members: `limit`, `retry_after_s`
|
|
1393
|
+
|
|
1394
|
+
The instance runs one turn at a time and its queue is full (`turns.queue_max` messages wait already). Retry after `Retry-After` with the same `Idempotency-Key`; nothing was queued for this request.
|
|
1395
|
+
|
|
1396
|
+
<h3 id="instance_wake_failed"><code>instance_wake_failed</code></h3>
|
|
1397
|
+
|
|
1398
|
+
`503` · Instance did not wake · Retryable · Members: `retry_after_s`, `reason`
|
|
1399
|
+
|
|
1400
|
+
The instance could not be brought back from sleep in time: a resume, a restore from its memory snapshot or a cold boot from its disk did not finish within its wake budget, or the node had no room for it. The message stays queued when it was accepted; a request that was refused before it was accepted can be retried after `Retry-After` with the same `Idempotency-Key`.
|
|
1401
|
+
|
|
1402
|
+
<h3 id="instance_lost"><code>instance_lost</code></h3>
|
|
1403
|
+
|
|
1404
|
+
`502` · Instance lost · Not retryable
|
|
1405
|
+
|
|
1406
|
+
The instance's microVM stopped during the turn. The message was delivered, so it is not sent again: the harness may have acted on it. The instance recovers at its next message (from its memory snapshot, else from its disk), and that session says how (`woke_from`, `recovered`).
|
|
1407
|
+
|
|
1408
|
+
<h3 id="harness_error"><code>harness_error</code></h3>
|
|
1409
|
+
|
|
1410
|
+
`502` · Harness error · Not retryable · Members: `upstream_status`
|
|
1411
|
+
|
|
1412
|
+
The harness inside the instance answered the message with a status other than 2xx, or closed the connection before answering. `upstream_status` is the harness's status when it sent one. The harness's own logs are in `GET /v1/sandboxes/{sandbox_id}/logs`.
|
|
1413
|
+
|
|
1414
|
+
<h3 id="session_timeout"><code>session_timeout</code></h3>
|
|
1415
|
+
|
|
1416
|
+
`504` · Session timed out · Not retryable
|
|
1417
|
+
|
|
1418
|
+
The turn ran past the agent's `turns.timeout_s`, which counts from the message's acceptance (the time it waited in the queue included). The request into the harness was closed; whatever the harness did meanwhile stands.
|
|
1419
|
+
|
|
1420
|
+
<h3 id="session_interrupted"><code>session_interrupted</code></h3>
|
|
1421
|
+
|
|
1422
|
+
`502` · Session interrupted · Not retryable
|
|
1423
|
+
|
|
1424
|
+
The node restarted while the harness had this message. B3OS delivers a message into a harness at most once, so it is not sent again unless the agent sets `turns.redeliver: true` (for a harness that ignores a session ID it has already seen, from the `x-b3os-session` header). Send it again yourself to repeat the turn.
|
|
1425
|
+
|
|
1426
|
+
<h3 id="agent_session_not_found"><code>agent_session_not_found</code></h3>
|
|
1427
|
+
|
|
1428
|
+
`404` · Agent session not found · Not retryable
|
|
1429
|
+
|
|
1430
|
+
No agent session with this `ses_` ID exists in your project. Sessions are kept 30 days after they end.
|
|
1431
|
+
|
|
1432
|
+
<h3 id="instance_self_message"><code>instance_self_message</code></h3>
|
|
1433
|
+
|
|
1434
|
+
`409` · Instance messaged itself · Not retryable
|
|
1435
|
+
|
|
1436
|
+
Code inside an instance sent a message to that same instance. The instance runs one turn at a time, so the message could only run after the turn that sent it ends, and a turn that waits for it would never end. Do the work in the current turn, or message another instance.
|
|
1437
|
+
|
|
1438
|
+
<h3 id="credential_revoked"><code>credential_revoked</code></h3>
|
|
1439
|
+
|
|
1440
|
+
`403` · Credential revoked · Not retryable
|
|
1441
|
+
|
|
1442
|
+
The API key that sent this message was revoked or expired before the message was delivered, so the message was not delivered. An instance outlives the key that created it; a message does not outlive the key that sent it.
|
|
1443
|
+
|
|
1444
|
+
## Routines
|
|
1445
|
+
|
|
1446
|
+
<h3 id="routine_not_found"><code>routine_not_found</code></h3>
|
|
1447
|
+
|
|
1448
|
+
`404` · Routine not found · Not retryable
|
|
1449
|
+
|
|
1450
|
+
No routine with this ID or name exists in your project.
|
|
1451
|
+
|
|
1452
|
+
<h3 id="routine_version_not_found"><code>routine_version_not_found</code></h3>
|
|
1453
|
+
|
|
1454
|
+
`404` · Routine version not found · Not retryable
|
|
1455
|
+
|
|
1456
|
+
The routine has no version with this `ver_` ID or number.
|
|
1457
|
+
|
|
1458
|
+
<h3 id="run_not_found"><code>run_not_found</code></h3>
|
|
1459
|
+
|
|
1460
|
+
`404` · Run not found · Not retryable
|
|
1461
|
+
|
|
1462
|
+
No routine run with this `run_` ID exists in your project. Run history is kept for 30 days.
|
|
1463
|
+
|
|
1464
|
+
<h3 id="hook_not_found"><code>hook_not_found</code></h3>
|
|
1465
|
+
|
|
1466
|
+
`404` · Hook not found · Not retryable
|
|
1467
|
+
|
|
1468
|
+
No webhook trigger with this `hk_` ID exists, or its routine was deleted.
|
|
1469
|
+
|
|
1470
|
+
<h3 id="routine_invalid"><code>routine_invalid</code></h3>
|
|
1471
|
+
|
|
1472
|
+
`422` · Invalid routine · Not retryable · Members: `errors`
|
|
1473
|
+
|
|
1474
|
+
The routine definition failed schema validation or compilation (unknown step reference, dependency cycle, CEL parse error or unknown name). `errors[]` points into the request body, for example `/steps/2/with/url`.
|
|
1475
|
+
|
|
1476
|
+
<h3 id="routine_name_taken"><code>routine_name_taken</code></h3>
|
|
1477
|
+
|
|
1478
|
+
`409` · Routine name taken · Not retryable
|
|
1479
|
+
|
|
1480
|
+
Another routine in this project already has this name. `POST /v1/routines` only creates; use `PUT /v1/routines/{name}` to publish a new version of an existing routine.
|
|
1481
|
+
|
|
1482
|
+
<h3 id="run_not_waiting"><code>run_not_waiting</code></h3>
|
|
1483
|
+
|
|
1484
|
+
`409` · Run is not waiting for this signal · Not retryable
|
|
1485
|
+
|
|
1486
|
+
The run can no longer receive this signal: it already finished, or 16 signals of this name are already buffered. Signals sent before their `wait` step starts are buffered (up to 16 per name) and consumed in order.
|
|
1487
|
+
|
|
1488
|
+
<h3 id="event_fan_out_too_large"><code>event_fan_out_too_large</code></h3>
|
|
1489
|
+
|
|
1490
|
+
`422` · Event fans out too far · Not retryable
|
|
1491
|
+
|
|
1492
|
+
Every step an event resumes journals the event with its run, so an event's JSON plus 256 bytes per step may add up to at most 4 MiB across the steps it resumes: 15 steps for an event at the 256 KiB body cap, about 7,500 for one of 300 bytes. This event matched more, and nothing was delivered. Send a smaller event (an ID the step can look up instead of the document) or a `match` that fewer runs share.
|
|
1493
|
+
|
|
1494
|
+
<h3 id="wait_link_invalid"><code>wait_link_invalid</code></h3>
|
|
1495
|
+
|
|
1496
|
+
`404` · Wait link not valid · Not retryable
|
|
1497
|
+
|
|
1498
|
+
The wait link is malformed, signed for another run, step or project, or its run is no longer kept. Every link that does not check out gets this same answer, so it tells nothing about which runs exist.
|
|
1499
|
+
|
|
1500
|
+
<h3 id="wait_not_ready"><code>wait_not_ready</code></h3>
|
|
1501
|
+
|
|
1502
|
+
`409` · Wait not ready · Retryable
|
|
1503
|
+
|
|
1504
|
+
The link's step has not started waiting yet (a step before it is still running). Retry after `Retry-After` seconds; the page reloads by itself.
|
|
1505
|
+
|
|
1506
|
+
<h3 id="wait_already_answered"><code>wait_already_answered</code></h3>
|
|
1507
|
+
|
|
1508
|
+
`410` · Wait already answered · Not retryable
|
|
1509
|
+
|
|
1510
|
+
The link's step already has its answer, through this link or a signal sent through the API. A wait link works once.
|
|
1511
|
+
|
|
1512
|
+
<h3 id="wait_link_expired"><code>wait_link_expired</code></h3>
|
|
1513
|
+
|
|
1514
|
+
`410` · Wait link expired · Not retryable
|
|
1515
|
+
|
|
1516
|
+
The link no longer takes an answer: its step passed its deadline, it started waiting more than 7 days ago, or the run ended first.
|
|
1517
|
+
|
|
1518
|
+
<h3 id="run_not_finished"><code>run_not_finished</code></h3>
|
|
1519
|
+
|
|
1520
|
+
`409` · Run not finished · Not retryable · Members: `current_status`
|
|
1521
|
+
|
|
1522
|
+
`routinesReplayRun` replays finished runs only, and this one is still `queued` or `running` (the `current_status` member). Wait for it to finish, or cancel it, then replay it.
|
|
1523
|
+
|
|
1524
|
+
<h3 id="run_steps_not_kept"><code>run_steps_not_kept</code></h3>
|
|
1525
|
+
|
|
1526
|
+
`410` · Run steps not kept · Not retryable
|
|
1527
|
+
|
|
1528
|
+
The run ran with `ephemeral` durability, which keeps only the run's summary once it ends (status, timing, `input`, `result`, `error` and its IDs; the run reads with `steps_kept: false`). Its step executions and their outputs were not kept, so `GET /v1/routines/runs/{run_id}/steps` cannot list them and a replay has nothing to copy. Read the summary with `GET /v1/routines/runs/{run_id}`, start a new run with the same input, or run with `standard` durability to keep the steps.
|
|
1529
|
+
|
|
1530
|
+
<h3 id="replay_too_large"><code>replay_too_large</code></h3>
|
|
1531
|
+
|
|
1532
|
+
`422` · Replay too large · Not retryable
|
|
1533
|
+
|
|
1534
|
+
A replay copies its source run's step outputs into its start record, and those outputs with the run's input are more than `routines.max_step_output_bytes` (1 MiB by default). Replay from an earlier step, so fewer steps are copied.
|
|
1535
|
+
|
|
1536
|
+
<h3 id="run_as_revoked"><code>run_as_revoked</code></h3>
|
|
1537
|
+
|
|
1538
|
+
`403` · Publishing key revoked · Not retryable
|
|
1539
|
+
|
|
1540
|
+
Routine runs execute as the key that published the active version, and that key is revoked or expired. Its triggers are paused. Publish a new version with a valid key to resume.
|
|
1541
|
+
|
|
1542
|
+
<h3 id="webhook_signature_invalid"><code>webhook_signature_invalid</code></h3>
|
|
1543
|
+
|
|
1544
|
+
`401` · Webhook verification failed · Not retryable · Members: `reason`
|
|
1545
|
+
|
|
1546
|
+
The inbound webhook failed verification. The `reason` member is `signature` (missing or not matching) or `timestamp` (the signed timestamp is missing or further from the node's clock than the tolerance: a routine trigger's `tolerance_s` or a pack trigger's `verify.toleranceS`, at most 300 seconds for both). For a delivery the edge queued while the node was down and replays later, the tolerance applies to the time the edge received it, which the edge signs; a bad edge signature is `signature` too. A hook's GET verification (`routinesAnswerHookChallenge`) answers it with `signature` for a missing or wrong verify token and for a trigger without `challenge`. A trigger whose signing secret or verify token is a vault connection the publishing key cannot use (the connection is gone, or the key lacks `vault:run`) verifies nothing and answers it with `signature` too; the hook's delivery log names the cause.
|
|
1547
|
+
|
|
1548
|
+
<h3 id="step_failed"><code>step_failed</code></h3>
|
|
1549
|
+
|
|
1550
|
+
`422` · Step failed · Not retryable · Members: `step`
|
|
1551
|
+
|
|
1552
|
+
Used as a run's `error` when a step failed after its retries and had no `continue_on_error`. `step` is the step ID; the step's own error is in the run's `steps[]`.
|
|
1553
|
+
|
|
1554
|
+
<h3 id="expression_error"><code>expression_error</code></h3>
|
|
1555
|
+
|
|
1556
|
+
`422` · Expression error · Not retryable · Members: `step`
|
|
1557
|
+
|
|
1558
|
+
A `${{ }}` expression failed at run time (for example a missing field or a type mismatch). Used in step errors; `step` is the step ID.
|
|
1559
|
+
|
|
1560
|
+
<h3 id="run_input_invalid"><code>run_input_invalid</code></h3>
|
|
1561
|
+
|
|
1562
|
+
`422` · Invalid run input · Not retryable · Members: `errors`
|
|
1563
|
+
|
|
1564
|
+
The run's `input` (after the routine's `inputs` defaults were applied) does not match the routine's `inputs` schema. `errors[]` points into the request body, for example `/input/topic`.
|
|
1565
|
+
|
|
1566
|
+
<h3 id="step_timed_out"><code>step_timed_out</code></h3>
|
|
1567
|
+
|
|
1568
|
+
`504` · Step timed out · Retryable
|
|
1569
|
+
|
|
1570
|
+
Used as a step's `error` when an attempt ran past its `timeout_ms` (or `defaults.timeout_ms`). Pure and read steps retry it under their retry policy; write steps retry only when their own `retry` asks for it.
|
|
1571
|
+
|
|
1572
|
+
<h3 id="step_outcome_unknown"><code>step_outcome_unknown</code></h3>
|
|
1573
|
+
|
|
1574
|
+
`409` · Step outcome unknown · Not retryable
|
|
1575
|
+
|
|
1576
|
+
Used as a step's `error` after a restart of a `strict` run: the node had recorded the intent to run this `irreversible` step but not its result, so it cannot know whether the effect happened and does not repeat it. Check the destination, then start a new run if needed.
|
|
1577
|
+
|
|
1578
|
+
<h3 id="internal_recovery_failed"><code>internal_recovery_failed</code></h3>
|
|
1579
|
+
|
|
1580
|
+
`500` · Recovery failed · Not retryable
|
|
1581
|
+
|
|
1582
|
+
Used as a run's `error` after a node restart: the run was active when the node stopped, and its routine version no longer compiles on the node's current release (a callable it uses was removed or changed), so the run could not resume. The run failed, its webhook got `job.failed`, and a sub-routine's calling step failed with this error. Publish the routine again and start a new run.
|
|
1583
|
+
|
|
1584
|
+
<h3 id="hook_attestation_unverifiable"><code>hook_attestation_unverifiable</code></h3>
|
|
1585
|
+
|
|
1586
|
+
`503` · Webhook replay cannot be checked yet · Retryable · Members: `retry_after_s`
|
|
1587
|
+
|
|
1588
|
+
The edge replayed a webhook delivery it queued while the node was down, the provider's signed timestamp is outside the tolerance of the node's clock, and the edge signed its receive time with a key id (`x-b3os-edge-kid`) this node does not trust yet. The edge keeps the delivery and retries it. Operators add the edge key to `[[auth.edge_keys]]`.
|
|
1589
|
+
|
|
1590
|
+
## Listeners
|
|
1591
|
+
|
|
1592
|
+
<h3 id="listener_not_found"><code>listener_not_found</code></h3>
|
|
1593
|
+
|
|
1594
|
+
`404` · Listener not found · Not retryable
|
|
1595
|
+
|
|
1596
|
+
No listener with this `lsn_` ID exists in your project. Another project's listener answers this too, and so does a deleted one: its history stays readable for 7 days through its events route.
|
|
1597
|
+
|
|
1598
|
+
<h3 id="listener_event_not_found"><code>listener_event_not_found</code></h3>
|
|
1599
|
+
|
|
1600
|
+
`404` · Listener event not found · Not retryable
|
|
1601
|
+
|
|
1602
|
+
The listener's history has no event with this `evt_` ID. History is kept 7 days, and duplicates the dedupe window dropped were never written.
|
|
1603
|
+
|
|
1604
|
+
<h3 id="listener_invalid"><code>listener_invalid</code></h3>
|
|
1605
|
+
|
|
1606
|
+
`422` · Listener invalid · Not retryable · Members: `reason`, `errors`
|
|
1607
|
+
|
|
1608
|
+
The listener's definition cannot be used. `reason` says which part, and `errors` points into the body: `source` (a URL that is not an absolute http or https URL, a refused header, a source type this node does not serve), `connection_host` (the source's host is not one of the connection's `hosts`, so its credential would never be sent), `connection` (no such connection in this project), `filter` or `dedupe` (a CEL expression that does not compile), `sink` (no such routine in this project, a `mode: event` sink without an `event`, a webhook URL that is not https), `redact` (a path that is not a JSON pointer), `ttl` (both `ttl_s` and `expires_at`, or an `expires_at` in the past), `budget` (above the organization's `listeners.events.daily`). Fix that part and send it again.
|
|
1609
|
+
|
|
1610
|
+
<h3 id="listener_not_active"><code>listener_not_active</code></h3>
|
|
1611
|
+
|
|
1612
|
+
`409` · Listener not active · Not retryable · Members: `current_status`
|
|
1613
|
+
|
|
1614
|
+
The listener cannot take this request in its current status, which `current_status` gives. A `paused` listener takes events again after `PATCH {"paused": false}`; a `failed` one restarts the same way once its cause is fixed. `expired` and `revoked` listeners have ended: create a new one.
|
|
1615
|
+
|
|
1616
|
+
<h3 id="listener_wrong_source"><code>listener_wrong_source</code></h3>
|
|
1617
|
+
|
|
1618
|
+
`409` · Wrong source type · Not retryable
|
|
1619
|
+
|
|
1620
|
+
Events can be sent in only to a listener whose source is `push`. This listener reads its events from its own source.
|
|
1621
|
+
|
|
1622
|
+
<h3 id="listener_backlog_full"><code>listener_backlog_full</code></h3>
|
|
1623
|
+
|
|
1624
|
+
`429` · Listener backlog full · Retryable · Members: `retry_after_s`
|
|
1625
|
+
|
|
1626
|
+
The listener holds `listeners.backlog_max` events its sink has not taken yet, usually because the sink is failing or slow. Retry after `Retry-After`; the listener's history shows the failing deliveries.
|
|
1627
|
+
|
|
1628
|
+
## Actions and triggers
|
|
1629
|
+
|
|
1630
|
+
<h3 id="pack_not_found"><code>pack_not_found</code></h3>
|
|
1631
|
+
|
|
1632
|
+
`404` · Pack not found · Not retryable
|
|
1633
|
+
|
|
1634
|
+
No pack with this ID (`<namespace>/<name>`, for example `io.b3os/github`) is available.
|
|
1635
|
+
|
|
1636
|
+
<h3 id="pack_version_not_found"><code>pack_version_not_found</code></h3>
|
|
1637
|
+
|
|
1638
|
+
`404` · Pack version not found · Not retryable
|
|
1639
|
+
|
|
1640
|
+
The pack has no version that satisfies this version or range.
|
|
1641
|
+
|
|
1642
|
+
<h3 id="action_not_found"><code>action_not_found</code></h3>
|
|
1643
|
+
|
|
1644
|
+
`404` · Action not found · Not retryable
|
|
1645
|
+
|
|
1646
|
+
The pack version has no action with this key. `GET /v1/actions/search` finds actions by name and description.
|
|
1647
|
+
|
|
1648
|
+
<h3 id="action_not_allowed"><code>action_not_allowed</code></h3>
|
|
1649
|
+
|
|
1650
|
+
`403` · Action not allowed · Not retryable
|
|
1651
|
+
|
|
1652
|
+
The calling sandbox's grant has an actions rule (`api.actions.allow`) that does not name this pack action, or names it at another version than the call admits. A deployed service's rule is the packs its b3os.yaml declares in `uses` (`pack/<id>`), at the version `actions.packs` gives: add the pack there and deploy. The detail names the action asked for and the entries the rule holds. Nothing ran and nothing was billed. The routines API answers it too: a run such a sandbox starts carries its rule (a step outside it fails with this code), and the sandbox may signal or send an event only to runs within its rule, and may not test-deliver a hook, since a run acts as its routine's publisher.
|
|
1653
|
+
|
|
1654
|
+
<h3 id="trigger_not_found"><code>trigger_not_found</code></h3>
|
|
1655
|
+
|
|
1656
|
+
`404` · Trigger not found · Not retryable
|
|
1657
|
+
|
|
1658
|
+
The pack version has no trigger with this key.
|
|
1659
|
+
|
|
1660
|
+
<h3 id="trigger_subscription_not_found"><code>trigger_subscription_not_found</code></h3>
|
|
1661
|
+
|
|
1662
|
+
`404` · Trigger subscription not found · Not retryable
|
|
1663
|
+
|
|
1664
|
+
No trigger subscription with this `tsub_` ID exists in your project. Subscriptions exist while a published routine version has the `type: action` trigger that created them; a rollback, a version without that trigger, or deleting the routine removes them.
|
|
1665
|
+
|
|
1666
|
+
<h3 id="action_ref_invalid"><code>action_ref_invalid</code></h3>
|
|
1667
|
+
|
|
1668
|
+
`400` · Invalid action reference · Not retryable
|
|
1669
|
+
|
|
1670
|
+
The reference does not match `<namespace>/<name>/<action>@<version>`, for example `io.b3os/github/create-issue@1.0.0`. The namespace is reverse-DNS with at least one dot.
|
|
1671
|
+
|
|
1672
|
+
<h3 id="action_input_invalid"><code>action_input_invalid</code></h3>
|
|
1673
|
+
|
|
1674
|
+
`422` · Invalid action input · Not retryable · Members: `errors`, `reason`, `egress_reason`, `upstream_status`
|
|
1675
|
+
|
|
1676
|
+
The input does not match the action's input schema. `errors[]` points into the request body, for example `/input/title`. For a hosted tool's file value given as `{"$url": ...}`, `reason` says why the node did not fetch it, with `errors[]` at `/input/<field>`: `url_scheme` (anything but `https` on port 443), `url_denied` (the egress guard refused the address, `egress_reason` one of `egress_denied`'s reasons), `url_status` (the server answered a status other than 200, `upstream_status`), `url_too_large` (more than the action's `execution.maxInputMb`), `url_redirects` (more than 3 redirects) or `url_timeout`. A fetch that failed started no VM and bills nothing but the `egress.bytes` it read.
|
|
1677
|
+
|
|
1678
|
+
<h3 id="action_output_invalid"><code>action_output_invalid</code></h3>
|
|
1679
|
+
|
|
1680
|
+
`502` · Upstream returned unexpected data · Not retryable · Members: `upstream_status`
|
|
1681
|
+
|
|
1682
|
+
The upstream answered, but the mapped result does not match the action's output schema. Report it to the pack publisher.
|
|
1683
|
+
|
|
1684
|
+
<h3 id="action_memory_exceeded"><code>action_memory_exceeded</code></h3>
|
|
1685
|
+
|
|
1686
|
+
`502` · Action ran out of memory · Not retryable
|
|
1687
|
+
|
|
1688
|
+
A JavaScript (T1) action used more memory than its limit (`execution.memoryMb` in the pack manifest, 128 MB by default) and was stopped. The same input fails the same way: send less data per call, or report it to the pack publisher.
|
|
1689
|
+
|
|
1690
|
+
<h3 id="connection_required"><code>connection_required</code></h3>
|
|
1691
|
+
|
|
1692
|
+
`422` · Connection required · Not retryable
|
|
1693
|
+
|
|
1694
|
+
The action needs a stored credential and none was found: `connections` does not name one for the key, and the project has no connection for that pack and key without a `subject` (one with a `subject` belongs to an end user and is used only when named). `errors[]` points at the key, for example `/connections/token`, and `connect_url` is a dashboard link that opens Add connection with the pack, key and project filled in (and the end user's `subject` when the call named one): open it, add the credential, then retry the call. A sandbox principal finds only the connections in its `api.connections`. A caller without `vault:run` gets `403` `forbidden` with `required_scope: vault:run` instead, and a named connection it cannot use gets `404` `connection_not_found`.
|
|
1695
|
+
|
|
1696
|
+
<h3 id="connection_mismatch"><code>connection_mismatch</code></h3>
|
|
1697
|
+
|
|
1698
|
+
`422` · Connection does not match · Not retryable
|
|
1699
|
+
|
|
1700
|
+
The connection's kind, pack or bound hosts do not match what the action declares.
|
|
1701
|
+
|
|
1702
|
+
<h3 id="pack_unavailable"><code>pack_unavailable</code></h3>
|
|
1703
|
+
|
|
1704
|
+
`503` · Pack unavailable · Retryable
|
|
1705
|
+
|
|
1706
|
+
The node could not load this pack version: it failed content-hash or publisher-signature verification, or the download from the registry failed.
|
|
1707
|
+
|
|
1708
|
+
<h3 id="action_expression_error"><code>action_expression_error</code></h3>
|
|
1709
|
+
|
|
1710
|
+
`422` · Action expression failed · Not retryable · Members: `errors`
|
|
1711
|
+
|
|
1712
|
+
A `${{ }}` expression in the pack failed for this input before anything was sent (a missing field, a type mismatch, a URL that does not parse, a header with CR or LF), or a webhook delivery could not be evaluated by the trigger's dedupe key, filter or handshake. `errors[]` names the template field. Nothing reached the upstream; if the input is valid, report it to the pack publisher.
|
|
1713
|
+
|
|
1714
|
+
<h3 id="tool_failed"><code>tool_failed</code></h3>
|
|
1715
|
+
|
|
1716
|
+
`502` · Hosted tool failed · Not retryable · Members: `reason`, `errors`, `exit_code`, `signal`, `tool_code`, `tool_message`, `retryable`, `stderr`
|
|
1717
|
+
|
|
1718
|
+
A hosted tool's call did not produce a valid answer. `reason` says which part failed: `unpack` (the tool's archive did not unpack; nothing is billed), `exit` (the command exited with a status other than 0, `exit_code`, or its VM stopped answering while the command ran), `signal` (the command was killed, `signal`), `protocol` (stdout was cut at 1 MiB, or its last line is not a JSON object with exactly one of `output` and `error`), `tool_error` (the tool answered `{"error": ...}`: `tool_code`, the first 300 characters of its message in `tool_message`, and `retryable` as the tool says), `output_invalid` (the output does not match the action's output schema; `errors[]` points under `/output`), `output_file` (an output file path that is not a file directly under `/out`, or a bad name) or `output_too_large` (more output files than the action's `execution.maxOutputFiles`, or more than its `execution.maxOutputMb` of them in all). A run the guest itself refused is `exit` too. Every reason but `unpack` bills the call's compute and floor and no publisher price. `tool_message` is text the tool wrote: treat it as data. A failure of an org-private tool (its caller is always its own organization) carries `stderr`, the first 4096 bytes of the command's standard error; a listed tool's failure never does. Report a tool that fails on valid input to its publisher.
|
|
1719
|
+
|
|
1720
|
+
<h3 id="tool_timed_out"><code>tool_timed_out</code></h3>
|
|
1721
|
+
|
|
1722
|
+
`504` · Hosted tool timed out · Not retryable · Members: `stderr`
|
|
1723
|
+
|
|
1724
|
+
A hosted tool's command did not finish within the call's budget: the least of the call's `timeout_ms`, the action's own `execution.timeoutMs` and 60 seconds. The call's compute and floor are billed and no publisher price. On `POST /v1/actions/call` a priced action cannot be given a `timeout_ms` below its own: that request is refused with `400 invalid_request` before anything runs. A routine step's call is not refused: it runs to the action's own timeout. A budget the platform used up before the command ran is `503 tool_unavailable` and bills nothing.
|
|
1725
|
+
|
|
1726
|
+
<h3 id="tool_unavailable"><code>tool_unavailable</code></h3>
|
|
1727
|
+
|
|
1728
|
+
`503` · Hosted tool unavailable · Retryable · Members: `reason`, `retry_after_s`
|
|
1729
|
+
|
|
1730
|
+
The node could not start the hosted tool before its command ran: `reason` is `no_slot` (no microVM was free, after the node retried once on a fresh one or waited up to 2 s for the VMs it was tearing down; or the call's time ran out before its command could start), `node_busy` (the node is running its limit of hosted tools), `copy` (the tool's files could not be copied into its VM, or the VM did not answer the unpack in time), `exec` (the sandboxes product refused the run before it reached the VM), `file_store` (the node's file store for tool files is full) or `blocks_unknown` (the node has not yet received the list of blocked tools from the edge, so it runs no tool outside `io.b3os`). Nothing is billed. Retry after `Retry-After` seconds.
|
|
1731
|
+
|
|
1732
|
+
<h3 id="tool_blocked"><code>tool_blocked</code></h3>
|
|
1733
|
+
|
|
1734
|
+
`451` · Tool removed · Not retryable · Members: `block`, `scope`
|
|
1735
|
+
|
|
1736
|
+
B3OS has removed this hosted tool: a block on its publisher, pack, version or action. `block` is the block's `tblk_` ID and `scope` which of the four it covers. The call is refused before any VM is claimed, on every surface (`POST /v1/actions/call`, an MCP tool call, a routine step), and nothing is billed; an output file of a blocked tool's earlier call answers `451` too. The block stays until B3OS lifts it. Questions: abuse@b3os.org, with the block's ID.
|
|
1737
|
+
|
|
1738
|
+
## Vault
|
|
1739
|
+
|
|
1740
|
+
<h3 id="connection_not_found"><code>connection_not_found</code></h3>
|
|
1741
|
+
|
|
1742
|
+
`404` · Connection not found · Not retryable
|
|
1743
|
+
|
|
1744
|
+
No connection with this `conn_` ID exists in your project. A sandbox principal gets this answer for a connection its `api.connections` does not list, so it cannot tell whether one exists.
|
|
1745
|
+
|
|
1746
|
+
<h3 id="connection_invalid"><code>connection_invalid</code></h3>
|
|
1747
|
+
|
|
1748
|
+
`422` · Invalid connection · Not retryable · Members: `errors`
|
|
1749
|
+
|
|
1750
|
+
The secret fields do not match the connection kind (for example `basic` without `password`), or a bound host is not a valid hostname. `errors[]` points at the field; secret values are never echoed.
|
|
1751
|
+
|
|
1752
|
+
<h3 id="connection_host_bound"><code>connection_host_bound</code></h3>
|
|
1753
|
+
|
|
1754
|
+
`422` · Connection is bound to hosts · Not retryable · Members: `errors`
|
|
1755
|
+
|
|
1756
|
+
A sandbox's or an agent's `secrets` named a connection that is bound to `hosts`, such as a pack credential (a CoinGecko or GitHub key) or a pack-less connection stored with `hosts`. Such a credential is only ever added by B3OS at the egress proxy, to requests for those hosts, so it is never put into a VM as an environment variable. Use it through its pack (`POST /v1/actions/call`, a routine step, or the sandbox's `api.connections` grant with the in-sandbox API), or store a separate connection without `hosts` for a value the code in the VM must read. `errors[]` points at the secret, for example `/secrets/COINGECKO_KEY`.
|
|
1757
|
+
|
|
1758
|
+
<h3 id="blob_not_found"><code>blob_not_found</code></h3>
|
|
1759
|
+
|
|
1760
|
+
`404` · Stored object not found · Not retryable
|
|
1761
|
+
|
|
1762
|
+
An encrypted object the vault keeps for another product (such as a browser profile's storage state) does not exist. Products usually report their own not-found code instead.
|
|
1763
|
+
|
|
1764
|
+
<h3 id="blob_too_large"><code>blob_too_large</code></h3>
|
|
1765
|
+
|
|
1766
|
+
`413` · Stored object too large · Not retryable
|
|
1767
|
+
|
|
1768
|
+
An object another product asked the vault to store (such as a browser profile's storage state) is larger than the vault keeps per object (16 MiB by default). Store less state, for example by clearing large localStorage or IndexedDB entries before saving the profile.
|
|
1769
|
+
|
|
1770
|
+
<h3 id="vault_unavailable"><code>vault_unavailable</code></h3>
|
|
1771
|
+
|
|
1772
|
+
`503` · Vault unavailable · Retryable · Members: `retry_after_s`
|
|
1773
|
+
|
|
1774
|
+
The vault on this node is not unlocked yet (its key is not loaded). Retry shortly; operations that need credentials fail until then.
|
|
1775
|
+
|
|
1776
|
+
## Infer
|
|
1777
|
+
|
|
1778
|
+
`/v1/infer/*` operations use the OpenAI error shape `{"error": {"message", "type", "code", "param"}}` with the B3OS code in `error.code`. `GET /v1/infer/audio/voices` is a B3OS endpoint and returns problems.
|
|
1779
|
+
|
|
1780
|
+
<h3 id="model_not_available"><code>model_not_available</code></h3>
|
|
1781
|
+
|
|
1782
|
+
`404` · Model not available · Not retryable
|
|
1783
|
+
|
|
1784
|
+
The model is not served on this node. `GET /v1/infer/models` lists the models that are. To use a model from the B3IQ gateway instead, set `"route": "gateway"`; B3OS never falls back silently.
|
|
1785
|
+
|
|
1786
|
+
<h3 id="context_length_exceeded"><code>context_length_exceeded</code></h3>
|
|
1787
|
+
|
|
1788
|
+
`400` · Context length exceeded · Not retryable
|
|
1789
|
+
|
|
1790
|
+
The prompt plus `max_tokens` exceeds the model's context window (`b3os.context_length` in the model list).
|
|
1791
|
+
|
|
1792
|
+
<h3 id="unsupported_parameter"><code>unsupported_parameter</code></h3>
|
|
1793
|
+
|
|
1794
|
+
`400` · Unsupported parameter · Not retryable
|
|
1795
|
+
|
|
1796
|
+
The model or runtime does not support a parameter you sent (for example `n` greater than 1, image input on a text-only model, or an audio format that is not enabled). The message names the parameter.
|
|
1797
|
+
|
|
1798
|
+
<h3 id="voice_not_found"><code>voice_not_found</code></h3>
|
|
1799
|
+
|
|
1800
|
+
`404` · Voice not found · Not retryable
|
|
1801
|
+
|
|
1802
|
+
The voice is not available for this speech model. `GET /v1/infer/audio/voices` lists them.
|
|
1803
|
+
|
|
1804
|
+
<h3 id="infer_backend_unavailable"><code>infer_backend_unavailable</code></h3>
|
|
1805
|
+
|
|
1806
|
+
`503` · Model runtime unavailable · Retryable · Members: `retry_after_s` · Firecrawl: `503` `infer_backend_unavailable` "Service Unavailable"
|
|
1807
|
+
|
|
1808
|
+
The model runtime on the node is restarting or overloaded. Retry after `Retry-After` seconds.
|
|
1809
|
+
|
|
1810
|
+
## Firecrawl compatibility
|
|
1811
|
+
|
|
1812
|
+
These codes appear only on `/compat/firecrawl/*`. Every other code that path can return has its Firecrawl mapping listed in its own entry.
|
|
1813
|
+
|
|
1814
|
+
<h3 id="unsupported_endpoint"><code>unsupported_endpoint</code></h3>
|
|
1815
|
+
|
|
1816
|
+
`404` · Endpoint not supported · Not retryable · Firecrawl: `404` `unsupported_endpoint` "Endpoint not supported by B3OS"
|
|
1817
|
+
|
|
1818
|
+
The Firecrawl endpoint exists upstream but B3OS does not implement it. The problem's `detail` is the B3OS alternative (the operation's `x-b3os-unsupported.alternative`), for example the native `/v1/vision/sessions` API instead of `/v2/interact`, so the Firecrawl `error` reads `Endpoint not supported by B3OS: <alternative>`.
|
|
1819
|
+
|
|
1820
|
+
<h3 id="unsupported_option"><code>unsupported_option</code></h3>
|
|
1821
|
+
|
|
1822
|
+
`400` · Option not supported · Not retryable · Firecrawl: `400` `unsupported_option` "Option not supported by B3OS"
|
|
1823
|
+
|
|
1824
|
+
The request uses a Firecrawl option B3OS cannot honor (for example `proxy: "enhanced"` or the `branding` format). The problem's `detail` names the option, so the Firecrawl `error` reads `Option not supported by B3OS: <detail>`. B3OS refuses rather than silently ignoring it.
|