Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@lucaromagnoli

Description

@lucaromagnoli
Issue body actions

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.Something isn't working.t-toolingIssues with this label are in the ownership of the tooling team.Issues 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.