All error codes
media_fetch_failed
HTTP 422Not retryableMedia could not be fetched or validated for MMS. Check the URL or re-upload via upload_media.
How to resolve
- Re-upload media with upload_media and retry send with the new URL.
- Confirm the media URL is publicly reachable over HTTPS.
Example response
JSON
{
"object": "error",
"code": "media_fetch_failed",
"message": "Media could not be fetched or validated for MMS. Check the URL or re-upload via upload_media.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/media_fetch_failed",
"retryable": false,
"recommended_action": "Re-upload media with upload_media and retry send with the new URL."
}SDK handling
TypeScript
import { StatxtClient, StatxtApiError } from "@statxt/sdk"
const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })
try {
await client.messages.send({ ... })
} catch (err) {
if (err instanceof StatxtApiError && err.code === "media_fetch_failed") {
// Media could not be fetched or validated for MMS. Check the URL or re-upload via upload_media.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/media_fetch_failed