error while try to iterate Asana\Iterator\ItemIterator object

I use the Asana PHP package:

$results = $client->tasks->getTasks();

When I try to iterate over iterator that I get:

foreach($results as $result)

I got an error:

Invalid Request

Can you help please?

Hi @Stevan_Aleksic,

I don’t know PHP, but can you see the details of the InvalidRequestError? That might tell you the specific reasons.

If you get the error at getTask(), please check if you have specified the container of the task, such as project, tag, or a pair of workspace and assignee.

Thanks @ShunS , II handle this issue. But I have another I will create a new tread.