Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset.getData() doesn't work locally on Windows #112

Closed
metalwarrior665 opened this issue Jun 11, 2018 · 2 comments
Closed

Dataset.getData() doesn't work locally on Windows #112

metalwarrior665 opened this issue Jun 11, 2018 · 2 comments
Labels
bug Something isn't working.

Comments

@metalwarrior665
Copy link
Member

Await dataset.getData() returns only empty paginationList. The same code works in Apify Actor.

@metalwarrior665 metalwarrior665 added the bug Something isn't working. label Jun 11, 2018
@metalwarrior665
Copy link
Member Author

The functions actually work, the problem is elsewhere. I have to add little waiting for it to work. I understand there may be some delay in the file system probably, but this will confuse users.

dataset = await Apify.openDataset(listUrl.replace(/\/|:|\./g,'-'))
await new Promise(resolve=>setTimeout(resolve, 5))
const urlsFromDataset = await dataset.map(item=>item.url)

@mtrunkat
Copy link
Member

Fixed - #117 . Releasing as BETA shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants