genetic-orange
genetic-orange13mo ago

Weird type error

https://console.apify.com/view/runs/4rGZolVyfYVQesyvO
ArgumentError: Expected property maxRequestsPerCrawl to be of type number but received type string in object PlaywrightCrawlerOptions
maxRequestsPerCrawl: process.env.ACTOR_MAX_PAID_DATASET_ITEMS || input.limit,
maxRequestsPerCrawl: process.env.ACTOR_MAX_PAID_DATASET_ITEMS || input.limit,
typeof crawler.options.maxRequestsPerCrawl
'number'
typeof crawler.options.maxRequestsPerCrawl
'number'
???
Apify
Apify Console
Manage Apify, a full-stack web scraping and data extraction platform.
No description
3 Replies
Hall
Hall13mo ago
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
HonzaS
HonzaS13mo ago
I think that process.env... returns string
genetic-orange
genetic-orangeOP13mo ago
Makes sense, thanks!

Did you find this page helpful?