Expand my Community achievements bar.

[URGENT][NEED HELP] Workfront API getting timed out while fetching data for project ids

Avatar

Level 1

HI Team, 

I am hitting below URL end point for each project id I have (which is around6k) and after sometime it is getting timed out in middle giving below error.
Is there any kind of limit we have to fetch no. of records in a particular timeframe or so?
https://{base_url}/attask/api/v18.0/project/{project_id}?fields={name_of_the_required_fields}
Error:-
Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f32e1459b20>: Failed to establish a new connection: [Errno 110] Connection timed out')

3 Replies

Avatar

Level 1

Is there any way we can avoid this error?

Avatar

Community Advisor

if it's a simple time out you can add error handling routine to re-attempt the same operation.

Avatar

Community Advisor

There are also performance guardrails on Fusion, not sure if your hitting any of these as part of your API, https://experienceleague.adobe.com/en/docs/workfront/using/adobe-workfront-fusion/get-started-with-w...

As Rafal noted, inputting some error handling should be able to get you past this.