Error while parsing tasks from a projects

I am trying to get all tasks from all projects from my account.

This is error that I have:
for j in range(len(tasks_data.json()[‘data’])):
KeyError: ‘data’
{‘errors’: [{‘message’: ‘The result is too large. You should use pagination (may require specifying a workspace)!’

Hi @Aleksandr_Chernuho and welcome to the forum,

As the error message says, you’re going to have to use pagination if you’re doing your own API calls (the official Asana client libraries have pagination built into them internally) - for details, see:

https://developers.asana.com/docs/#pagination

2 Likes

Don’t hesitate to come back here if you are struggling.