ambitious-aqua•3y ago
Failed request expected type of list but received object
Hello,
I am adding a list to crawler.addRequests() but I still get the error which you can see in the header.
Here is the full ERROR message:
How can I parse a list and not an object?
Any suggestions?
Many thanks in advance!
3 Replies
Did you check
directRequests
value? Are you sure you have an array of Requests
there?
Maybe try to console.log it/check type of it.ambitious-aquaOP•3y ago
The type is object. But in my actor.main I am saving it into an array like this:
Here is the full code of the main.js, my other scrapers are working with this structure but somehow this scraper seems to have problems while processing..
you need to check actual value of
directRequests
- from your description sounds like you passing wrong value in input