rest api for attachments returning http status 504 with large file uploads

Carl Stewart April 17, 2024

When I use the rest api for attachment uploading, it returns this:

The requested URL returned error: 504

I can't upload the html of it.  So here is what it says:

Something went wrong.

We're moving mountains to get it sorted.

View our status page and subscribe for
service updates.

image is this:

image.png

The api I'm using is:

https://<confluence cloud hostname>/wiki/rest/api/content/<page id>/child/attachment/att<attachment id>/data

Sometimes it happens where the upload stops uploading the file and it is incomplete.  Other times it appears to finish the upload where it gets to 100%, but then stops and appears to timeout returning the same http status of 504.

 

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2024

Hi @Carl Stewart 

If your attachment is within the size limit on you instance and its failing, reach out to Atlassian support.

https://support.atlassian.com/contact/# 

They can investigate the issues, based on logging of your instance.

Carl Stewart April 19, 2024

Since I'm not the site admin, I've asked the person who is to open up a ticket there for me.

Thanks.

I know it's not a size issue because if the upload does finish, after 30-60 seconds, it will stop and return http status 504.

I've even downloaded the file after and the file was complete.

Ekaterina Berezutskaya July 4, 2024

Hi Carl!

Did you find a solution?

0 votes
Carl Stewart April 17, 2024

now added this as part of the original posting because I can't delete this response.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events