Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Carl Stewart
Contributor
April 17, 2024 edited

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.

 

3 answers

1 accepted

0 votes
Answer accepted
Carl Stewart
Contributor
March 15, 2025

This appears to be fixed on Atlassian's side.

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
Contributor
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
Contributor
April 17, 2024 edited

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events