Reputation: 1693
I am using this
var image = {"type":"image","originalUrl":"image url here","previewUrl":"thumbnail url here"};
context.sendResponse(JSON.stringify(image));
format for uploading image to gupshup whatsapp chatbot, but image is not been send, the error it is showing is
{
"meta": {
"api_status": "stable",
"version": "2.21.4"
},
"errors": [
{
"code": 1014,
"title": "Internal error",
"details": "Image file format (application/octet-stream) is not supported"
}
]
}
Upvotes: 3
Views: 586
Reputation: 81
There is no support for sending the image file as Content-Type application/octet-stream
by WhatsApp hence you got the error.
Supported Content-Types are image/jpeg
, image/png
. Hence, you will have to provide Image URL which ends with image extension .jpg/.jpeg/.png
Upvotes: 1