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

[Confluence] Get pages from space key #1360

Open
AlokRanjanSwain opened this issue Apr 4, 2024 · 1 comment
Open

[Confluence] Get pages from space key #1360

AlokRanjanSwain opened this issue Apr 4, 2024 · 1 comment

Comments

@AlokRanjanSwain
Copy link

There is a limit of 100 pages from a particular space.
How can I loop over so that I can get all the pages including child pages from that space.

For my space If I give start point as 100 to test, it is throwing 502 bad gateway error.

conf.get_all_pages_from_space_raw(space="MySpace", start=100, limit=100000, status=None, expand="body.storage", content_type='page')
HTTPError: 502 Server Error: Bad Gateway for url: https://wiki.company.cloud/rest/api/content?spaceKey=MySpace&start=100&limit=100000&expand=body.storage&type=page

Can I know why is this error coming , and How to resolve this.

@Spacetown
Copy link
Contributor

@gonchik I think the paging should be implemented at global level with a generator as I did it for BitBucket. The problem is the different key for the next page. Have you an idea how to solve this in a generic way?

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