Skip to Content
NoCam API
Errors

unsupported_media

We can't read this file

  • Where: HTTP 415, and nothing started
  • Charged: No
  • Worth retrying: Not as it is. The request has to change first.

What happened

The file's first bytes decide what it is, not its name or the type you sent. We take PNG, JPEG, WebP, MP4, MOV, MP3 and WAV.

What to do

Convert it to one of these. A web page saved as .png is still a web page.

What it looks like

The real message and hint name the details of your request, such as the field and the values that work.

{
  "error": {
    "code": "unsupported_media",
    "message": "The file's first bytes decide what it is, not its name or the type you sent. We take PNG, JPEG, WebP, MP4, MOV, MP3 and WAV.",
    "hint": "Convert it to one of these. A web page saved as `.png` is still a web page.",
    "retryable": false,
    "request_id": "req_01a1b37b65dc7dcd8c060f296add5cf8",
    "docs_url": "https://docs.nocamclub.com/errors/unsupported_media"
  }
}

All codes: Errors.

On this page