sensitive-blue
sensitive-blue11mo 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
Hall11mo 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
HonzaS11mo ago
I think that process.env... returns string
sensitive-blue
sensitive-blueOP10mo ago
Makes sense, thanks!

Did you find this page helpful?