Fetch cards using boards API with pagination rather than the .json backup endpoint#63
Open
mickzijdel wants to merge 2 commits intoGSGBen:mainfrom
Open
Fetch cards using boards API with pagination rather than the .json backup endpoint#63mickzijdel wants to merge 2 commits intoGSGBen:mainfrom
mickzijdel wants to merge 2 commits intoGSGBen:mainfrom
Conversation
…we fetch all the cards of the board
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Context
I wanted to backup my Trello boards but for one board I got the following timeout error:
and when just fetching the failing board, I got this error:
I couldn't figure out what it was, but after navigating to the URL manually, I got the following error:
I fed Claude the API docs and asked it to modify the code for me so that it would fetch all the cards in the board with pagination in batches of a 1000 (the limit). After a few attempts, it came up with this code, which solved the issue and I have now backed up the board.
I do not have full project context to know if these changes make sense (maybe they should be put behind a flag?) but I wanted to provide it to you in case you can easily incorporate it.