CA
Crawlee & Apify8mo ago
correct-apricot

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
Hall8mo 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
HonzaS8mo ago
I think that process.env... returns string
correct-apricot
correct-apricotOP7mo ago
Makes sense, thanks!

Did you find this page helpful?