workflow.failed
You will receive this event when a Data API workflow fails for an object. No workflow.succeeded event is sent for that object.
Example Payload
Section titled “Example Payload”{ "type": "workflow.failed", "namespace": "users", "id": "user_12345", "request_id": "req_01h2m7qdmdjckc30e1mnq6xqfd", "error": "profile_image: A media file could not be found. Please update its URL and resubmit."}Fields
Section titled “Fields”type: Event type (workflow.failed)namespace: Namespace where the object was processedid: Originalidprovided when the object was ingestedrequest_id: Request identifier from ingestionerror: Message describing the failure
Error messages
Section titled “Error messages”Media errors
Section titled “Media errors”Sent when SafetyKit could not download or read a media URL on the object. When the failing field is known, the message is prefixed with its name, and its index for array fields, such as images[2]: .
error |
Cause |
|---|---|
We couldn't access a media file. Please provide an accessible URL and resubmit. |
The media host returned 401 or 403. |
A media file could not be found. Please update its URL and resubmit. |
The media host returned 404. |
A media file has an unsupported format. Please provide a supported file and resubmit. |
The file type is not supported. |
A media file exceeds the supported size limit. Please provide a smaller file and resubmit. |
The file is too large. |
We couldn't download a media file. Please check that its URL is accessible and resubmit. |
The download failed or timed out. |
We couldn't reach a media host. Please check the media URLs and resubmit. |
The URL’s hostname did not resolve. |
A media file is empty. Please provide a nonempty file and resubmit. |
The URL returned no content. |
An image is too small to review. Please provide a larger image and resubmit. |
The image dimensions are too small. |
We couldn't read a media file. Please provide a valid file; for videos, use a direct MP4 URL instead of a streaming playlist, and resubmit. |
The file is corrupt or is not the media type its field declares. |
A media URL cannot be downloaded. Please provide an accessible direct media URL and resubmit. |
The URL does not point directly at a media file. |
A media URL has expired. Please provide a fresh URL and resubmit. |
A signed URL expired before SafetyKit fetched it. |
These are fixed by correcting the object’s media and sending it again with the same id.
Workflow errors
Section titled “Workflow errors”Your workflow can define its own failure conditions, each with its own message. When one applies, error contains that message as configured.
Other errors
Section titled “Other errors”error |
Cause |
|---|---|
We couldn't complete this review. Please contact SafetyKit support with the request_id. |
The review failed for a reason that is not caused by the submitted content. |
See Errors for HTTP error codes and request-level failure states.