Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 post api throwing error #128

Open
anamika7153 opened this issue Apr 8, 2024 · 1 comment
Open

v2 post api throwing error #128

anamika7153 opened this issue Apr 8, 2024 · 1 comment

Comments

@anamika7153
Copy link

anamika7153 commented Apr 8, 2024

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
Copy link
Member

cyle commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants