Apify and Crawlee Official Forum

Updated 2 months 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
Plain Text
maxRequestsPerCrawl: process.env.ACTOR_MAX_PAID_DATASET_ITEMS || input.limit,

Plain Text
typeof crawler.options.maxRequestsPerCrawl
'number'

???
Attachment
image.png
H
T
2 comments
I think that process.env... returns string
Makes sense, thanks!
Add a reply
Sign up and join the conversation on Discord