Skip to content

Python SDK - Dataset.iterate_items() TypeError on Apify #320

@lucaromagnoli

Description

@lucaromagnoli

Hello,

I'm getting the following error when doing an async iteration over Dataset.iterate_items() using Python SDK.
This error only happens when running on Apify infrastructure, not when I run it locally.

e.g.

async for item in urls_dataset.iterate_items():
    url = item.get("url")

Error:
TypeError: 'async for' requires an object with __aiter__ method, got coroutine

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions