Hi,
We are getting 504 gateway timeout status code while using the ‘GET PROJECTS’ API of Asana. Below is the link of the API.
We are getting below error from the server
Server timed out with your request. Try paginating if you aren’t already doing so or call GET /teams/:team/projects instead, to reduce the scope of the request.
We are able to use the other APIs of the Asana but getting error while using the ‘GET PROJECTS’ API.
Any Solutions?
Thanks.
In our app, some of our customers with tons of projects have the same issue.
We had to change our approach, we call the “typeahead” api to get the 100 project with most potential to be used.
But we are still unable to retrieve all projects for these accounts.
1 Like
@Manish4 and @Frederic_Malenfant, you’re getting this error even if you’re doing pagination?
Also, there is a hard limit of something like 50,000 elements returned for an org even if using pagination, though I can’t find the reference to it at the moment. Could it be this?
Hi @Phil_Seeman ,
Yes, we can’t get the first page even if I set limit to 10. It waits very long time, then timeout.
I searched in my archived, I found a private message with @Ross_Grambo in 2020 about it, they know the issue, looks like they never fixed it.
But one of the suggestion he told me is to query projects by team, instead of all projects.
/team/xxx/projects.
So, we offer both in our app, the first 100-200 projects being sent by typeahead, but the users can also search by team, and that is working.
Typeahead is great because the returned projects are based on the user recent actions in asana, so there’s a good chance that the project you try to reach is on that list.
Ah, yes, I remember that discussion now!
1 Like