Hello Community,
We are collecting data for all checklists present in all the boards. So, we are collecting all the boards from "/boards" endpoint and for all the boards, we are collecting the respective checklists using "/boards/board-id-1/checklists" endpoint.
But recently we are facing 504 errors during these API Calls. Is it an issue from Trello's side or we are doing something wrong here?
The error we are encountering:
"504 Server Error: Gateway Timeout for URL: https://api.trello.com/1/boards/my-board-id/checklists?fields=all&checkItem_fields=all"
Thanks.
Hey @hp
Likely what's going on here is that your board has a lot of checklists, and it's taking Trello longer than the time allowed (30 seconds) to process and return them. Technically, this is something we need to fix. We don't use this API internally in our clients, so it's not optimized for large boards at this point.
I would suggest in the meantime you switch to a different API call, that lets you paginate through cards and checklists on those cards - this should enable you to get all checklists from a board (albeit requires writing more logic).
A call like api.trello.com/1/boards/<my-board-id>/cards?fields=&checklists=all&limit=100&since=<last-seen-card-id> should get you what you need
Felix
Thank you @Felix for the response.
We have tried updating this call, but we have 2 points:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Yes, the `/checklists` endpoint doesn't support pagination currently
2. Looks like you're just missing `limits`? I don't think that's currently available via the `/cards` route. Same with `creationMethod` - also currently not available.
Why do you need these fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.