code:
- Branch on
code, not onmessage. Codes are stable; messages are written for people and can change. - Log
message. For400errors it names every field that failed, asfield: problem, separated by commas. - Keep the request id. Errors from the API gateway (
401, most403s,429) also carryrequestIdin the body. Every response carries it in thex-amzn-RequestIdheader. Include it when you email help@onevisionresources.com.
Error codes
A record that belongs to another partner returns
404, not 403. The API never confirms
that a record you can’t access exists.Retrying safely
Retry only the codes marked Yes above. Use exponential backoff with jitter, and give up after a few attempts. Every other4xx will fail the same way again, so retrying it only uses up your rate limit.
Updates (PATCH), and applying or removing labels and links (PUT / DELETE), are safe to repeat: sending the same request twice leaves the record in the same state.
Common causes of 400
filtersisn’t URL-encoded. Encode the JSON array. With curl, use-G --data-urlencode. See Listing and filtering.- An attribute isn’t in the list’s allowed set. Each list has its own filter and sort fields.
- A custom property id is unknown, or its value has the wrong type. The message names the property, for example
customProperties.region: unknown custom property. See Custom properties and labels. - An id has the wrong format. Record ids are UUIDs, except user ids, which start with
ovuid-. - The conversation is closed. A closed conversation can’t be updated. See Conversation status.