Last updated 26 November 2026. By Paul Badarau.
A fictional bike shop's deploy job stops with status 400 and this body: {"error":"invalid_map","message":"A source map needs a debug ID, or a release and a filename."}. The job uploaded its maps before the step that injects debug IDs, and it sent no release or file headers, so no map could be matched to anything. Moving the upload after the inject step fixed it. Read the error code first, then find it below:
- 401
invalid_token. The request has noAuthorization: Bearerheader, or the token was revoked, or it belongs to a Project other than the number in the URL. A DSN key in its place fails the same way, because a DSN cannot upload. - 400
invalid,invalid_maporinvalid_bundle. The body is not what the endpoint reads. Common causes are aContent-Typeother thanapplication/jsonor a zip type, a file that is not UTF-8 JSON, an indexed map withsections, a map that is not version 3, a map with more than 2,000 sources or 8,000 names, or a map with no debug ID and no release and file headers. A zip is refused when it is Zip64, encrypted, or compressed with anything other than deflate. - 402
subscription_required. The Workspace has no active Subscription, so uploads are closed. A 503, such asentitlement_unavailable, means the check could not run at that moment, and it carriesRetry-After: 60. - 409
debug_id_conflict. A map with this debug ID is already stored with different contents, and Monitoring keeps the first one. Upload the map from the same build as the bundle that carries that ID. A map stored by release and file name is replaced instead of refused. - 413
too_large,map_too_largeormap_capacity. The upload is over 1 MiB, a zip holds more than 32 maps or 2 MiB uncompressed, a map is over 512 KiB once its source text is removed, or the Project already holds 200 maps. - 429
rate_limited. The Project took more than 60 new or replaced maps in one minute, or one address, or all of one Workspace's tokens together, sent more than 120 uploads in a minute. The answer carriesRetry-After: 60, so wait a minute and retry.
Retries are safe. Sending the same bytes again stores nothing new, does not count toward the Project's 60 a minute, and is reported as unchanged in the answer.
A refusal stores nothing from the request, so one map over 512 KiB inside a zip of 30 keeps all 30 out. Split a failing zip into single uploads to find that file. The 200-map limit is also permanent for a Project. A map stored by release and file name can be replaced without adding to the count, but a map stored by debug ID stays until the Workspace's data is deleted. Count your bundles per deploy before you upload every build.
The product page for this is Monitoring.