Forums

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

Export Confluence space to a JSON using REST API

Bhuvnesh Vermani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2025

We have data center version of confluence at on prem . I am trying to export all documents in a space. There are 127000 total docs in that space and each time my python scripts fails with below error and each time it successfully able to export 65000+ documents.

 

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error fetching or decoding page batch after 5 attempts: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Saved 70400 valid pages to confluence_pages.json 

1 answer

0 votes
Matteo Vecchiato
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.
September 6, 2025

Hi @Bhuvnesh Vermani ,

Welcome to Atlassian community and thank you for your question.

In my experience this kind of error is caused by a firewall, load balancer or proxy in front of the application. It usually is necessary to configure the timeout parameter in the specific software.

Moreover in Confluence there is also a timeout parameter: https://confluence.atlassian.com/doc/configuring-http-timeout-settings-184033.html 

I hope it helps.

Kind regards 

Bhuvnesh Vermani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 7, 2025

I don't think it's a proxy or load balancer time out because I am able to export  close to 70,000 docs. The error I highlighted occurs post exporting 70,000 docs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events