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)
{
dd($result);
}

I got an error:

Asana\Errors\InvalidRequestError
Invalid Request
vendor/asana/asana/src/Asana/Errors/AsanaError.php:28

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.