API
payload_too_large
HTTP 413. Payload too large
What it means
The body, a file or a version is over the published limits.
What to do
The limits are in GET /api/v1/ under limits: 100 files, 512 KiB per file and 2 MiB per version, and 3 MiB for the whole publish request. Trim the version with ignore globs in reuseforge.json, or split large data out of the package.
Retrying
Do not retry the same request. Change it first.
Example
{
"type": "https://reuseforge.com/docs/api/errors/payload_too_large",
"title": "Payload too large",
"status": 413,
"detail": "The request body is larger than this operation accepts.",
"instance": "/api/v1/items/acme/invoice-extractor",
"code": "payload_too_large",
"request_id": "req_c4v8n2m6x1z3"
}Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.