tumblr / docs

Tumblr's public platform documentation.
Apache License 2.0
109 stars 27 forks source link

v2 post api throwing error #128

Open anamika7153 opened 7 months ago

anamika7153 commented 7 months ago

I'm encountering difficulties while attempting to make a post request on Tumblr using the API endpoint. The post consists of 8 images along with 944 text characters. Although the content gets posted on my Tumblr account, there's an error occurring in the backend. The error message reads as follows: "message":"Request failed with status code 504".

API Endpoint: https://api.tumblr.com/v2/blog/${blog}/posts

Should I provide any further information?

cyle commented 7 months ago

HTTP status 504 signifies a gateway timeout on our end. It's likely the images you're uploading are too large (either individually or, more likely, in total), and so our backend is timing out at some point after the post is created but before it can send back a response. This is pretty hard to do intentionally, but it can happen if your request is very close to our upload limits. I'd suggest trying to upload fewer images, or reduce the size of the images before sending the request, on your side.

For further help, we'd need to see the actual images and the post content itself, which is best done through our Support form.