mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs: sweep docs to zero ste_lint findings and one remote session name
This commit is contained in:
@@ -8,7 +8,7 @@ matching **HTTP status**. This page documents that format and catalogues every e
|
||||
code the server can send.
|
||||
|
||||
If you write a client against the API, read this page alongside the endpoint
|
||||
reference. Each endpoint lists the specific codes it raises, and this page gives the
|
||||
reference. The section of each endpoint names the specific codes it raises, and this page gives the
|
||||
meanings of those codes.
|
||||
|
||||
!!! note "Where this comes from"
|
||||
@@ -64,7 +64,7 @@ Error ref 7f3a2c: SERVICE_ERROR 422 POST /api/session/<id>/license service=EXAMP
|
||||
```
|
||||
|
||||
Search the server log for `Error ref <ref>`. The handler's traceback, when there is one,
|
||||
is directly above that line. The [developer dashboard](dashboard.md) log view also shows it.
|
||||
is directly above that line. The [server dashboard](dashboard.md) log view also shows it.
|
||||
|
||||
### The `details` object
|
||||
|
||||
@@ -129,7 +129,7 @@ while the server restarts.
|
||||
| `CONFLICT` | 409 | The target resource is in a state that disallows the action (retrying a running job, prioritising a non-queued job, clearing cache during an active download). |
|
||||
| `SERVER_DRAINING` | 409 | The server is about to restart or stops, and starts no new remote session, remote login or download job. Open work continues. Retryable after the restart. A `dl --remote` client waits for the restart and opens a new remote session. |
|
||||
| `SERVICE_ERROR` | 422 | The streaming service's API returned an error, or the service does not support the requested operation, or the service code exited (`sys.exit`). |
|
||||
| `DRM_ERROR` | 422 | DRM or license acquisition failed. |
|
||||
| `DRM_ERROR` | 422 | DRM or licence acquisition failed. |
|
||||
| `RATE_LIMITED` | 429 | The streaming service is rate-limiting requests. Retryable. |
|
||||
|
||||
!!! warning "Not every `429` is `RATE_LIMITED`"
|
||||
@@ -294,7 +294,7 @@ For anyone writing a consumer of the API, a durable strategy is:
|
||||
HTTP status.
|
||||
|
||||
!!! note "Reference consumer"
|
||||
unshackle's own remote-download client treats any status of `400` or above as
|
||||
unshackle's own remote session client treats any status of `400` or above as
|
||||
fatal, and a `200` body with `"status": "error"` and an `error_code` too: it logs
|
||||
`Server error [<error_code>]: <message>` and exits. It retries a request once,
|
||||
after one second, only when a `502`, `503` or `504` arrives with a body that is
|
||||
|
||||
Reference in New Issue
Block a user