threads-api
threads-api copied to clipboard
Bad Request processing failed if image is png
Making a post with a PNG image it will throw the following error:
await threadsAPI.publish({
text: '🤖 test',
image: 'https://i.imgur.com/HyfKL15.png',
});
# rest of response
.....
data: {
debug_info: {
retriable: false,
type: 'ProcessingFailedError',
message: 'Request processing failed'
}
}
Nice catch! I think we will need to convert this image to a JPG and replace the alpha layer with black by default while also allowing an option for custom colors
Does this also happen on WebP transparent images as well?
Does this also happen on WebP transparent images as well?
Just did a test and yes, it also happens with WebP transparent images
[Edit] The PNG image I was sending isn't transparent, just a normal PNG image.
I'm guessing the PNG file had an alpha layer enabled, although it wasn't being utilized (having an actual transparent element)
Failed to publish: User ID not found
Nice catch! I think we will need to convert this image to a JPG and replace the alpha layer with black by default while also allowing an option for custom colors
Think this is the best approach here!