HTTP 400 · Bad Request
WEBPAGE_MEDIA_EMPTY
Webpage media empty.
HTTP 400
Web previews
When & why it happens
A required webpage media was omitted from the request. Populate it and retry.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "WEBPAGE_MEDIA_EMPTY" {
// handle this error
}
}
Related errors
URL_INVALIDInvalid URL provided.WEBDOCUMENT_INVALIDInvalid webdocument URL provided.WEBDOCUMENT_MIME_INVALIDInvalid webdocument mime type provided.WEBDOCUMENT_SIZE_TOO_BIGWebdocument is too big!WEBDOCUMENT_URL_INVALIDThe specified webdocument URL is invalid.WEBPAGE_CURL_FAILEDFailure while fetching the webpage with cURL.WEBPAGE_NOT_FOUNDA preview for the specified webpage url could not be generated.WEBPAGE_URL_INVALIDThe specified webpage url is invalid.