Forums

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

Confluence does not return complete page with python REST API

Fouad
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!
March 15, 2021

Hi guys,

 

I am using the python module  atlassian-python-api to get all pages and content from Confluence Cloud. Everything works fine except that the function confluence.get_page_by_id( "2069528577", expand="body.view", status=None, version=None) does not return the complete page content, only the first X characters. 

When I use POSTman or cURL with the same credentials and rights it does return the complete page content.  

I am using python 3.x and confluence cloud. 

I appreciate your help!

1 answer

1 accepted

1 vote
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2021

Hello @Fouad ,

Welcome to the Atlassian Community!

Please notice that the atlassian-python-api is neither developed nor supported by Atlassian.

Therefore, if calling the official Confluence Cloud REST API endpoint Get content by ID (GET /wiki/rest/api/content/{id}) works fine with Curl and/or Postman, but it fails when using the atlassian-python-api , this looks like a bug that should be reported using:

 

However, before doing so, you may also want to check if similar topics have already been discussed in the Developers Community .

 

I hope this helps.

 

Cheers,
Dario

Suggest an answer

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

Atlassian Community Events