Developer APIErrors
unsupported_document_format
Unsupported document format (HTTP 422): when the Shorty API returns the unsupported_document_format error, why, and how to fix it.
| Code | HTTP status | Type URI |
|---|---|---|
unsupported_document_format | 422 | https://aishorty.com/docs/api/errors/unsupported_document_format |
When it happens
A web-page summary (source: "url") was requested for a link whose path ends in .doc, a legacy Word file. The web-page summarizer reads HTML pages, not document files, so no job is started and nothing counts against your quota.
Example response
{
"type": "https://aishorty.com/docs/api/errors/unsupported_document_format",
"title": "Unsupported document format",
"status": 422,
"detail": "Shorty can't read older .doc Word files. Save it as .docx and upload again.",
"instance": "urn:request:req_01J9Z8ABCDEFGH0123456789",
"code": "unsupported_document_format",
"request_id": "req_01J9Z8ABCDEFGH0123456789"
}How to fix it
Send the text of the document as source: "text" instead, or save the file as .docx and summarize it with the Word Summarizer in the Shorty app. The detail says what to do in words you can show your user.
Related errors
- validation_failed — Validation failed (HTTP 400)