Getting "ow" errors when I click start #2123
Replies: 4 comments 4 replies
-
Hi @pguardiario, {
"startUrls": [
{ "url": "https://google.com/..." },
{ "url": "https://yahoo.com/..." },
]
} I.e. each start url is a string "wrapped" in an object with the In your code, you are treating the start urls as strings, which causes a problem in the Let us know in case of any other problems. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@barjin sorry I didn't quite follow that, are you saying startUrls should be strings or objects? |
Beta Was this translation helpful? Give feedback.
-
So yes startUrls need to be objects you're saying? It's strange that this works fine locally. |
Beta Was this translation helpful? Give feedback.
-
Great, let me know whether this has fixed your issue - and if it has, feel free to mark one of the comments as an answer. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Does anyone know what causes these? There is no ow in my script so it's something in Crawlee.
2023-10-11T03:55:23.049Z ACTOR: Pulling Docker image of build lXdAHIe554fRDGSHm from repository.
2023-10-11T03:55:25.886Z ACTOR: Creating Docker container.
2023-10-11T03:55:26.569Z ACTOR: Starting Docker container.
2023-10-11T03:55:32.366Z INFO System info {"apifyVersion":"3.1.12","apifyClientVersion":"2.8.0","crawleeVersion":"3.5.7","osType":"Linux","nodeVersion":"v18.18.0"}
2023-10-11T03:55:32.942Z /usr/src/app/node_modules/ow/dist/index.js:33
2023-10-11T03:55:32.944Z (0, test_1.default)(value, () => (0, infer_label_1.inferLabel)(stackFrames), labelOrPredicate);
2023-10-11T03:55:32.945Z ^
2023-10-11T03:55:32.946Z
2023-10-11T03:55:32.948Z ArgumentError: (array
requests
) Any predicate failed with the following errors:2023-10-11T03:55:32.949Z - Expected values to be of type
string
but received typeObject
2023-10-11T03:55:32.950Z - Expected property
url
to be of typestring
but received typeObject
in object values2023-10-11T03:55:32.952Z - Expected property
requestsFromUrl
to be of typestring
but received typeundefined
in object values2023-10-11T03:55:32.953Z at ow (/usr/src/app/node_modules/ow/dist/index.js:33:28)
2023-10-11T03:55:32.954Z at RequestQueue.addRequestsBatched (/usr/src/app/node_modules/@crawlee/core/storages/request_provider.js:304:26)
2023-10-11T03:55:32.955Z at RequestQueue.addRequestsBatched (/usr/src/app/node_modules/@crawlee/core/storages/request_queue.js:266:22)
2023-10-11T03:55:32.957Z at CheerioCrawler.addRequests (/usr/src/app/node_modules/@crawlee/basic/internals/basic-crawler.js:606:29)
2023-10-11T03:55:32.958Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2023-10-11T03:55:32.959Z validationErrors: Map(1) {
2023-10-11T03:55:32.960Z 'requests' => Set(1) {
2023-10-11T03:55:32.961Z '(array
requests
) Any predicate failed with the following errors:\n' +2023-10-11T03:55:32.962Z ' - Expected values to be of type
string
but received typeObject
\n' +2023-10-11T03:55:32.963Z ' - Expected property
url
to be of typestring
but received typeObject
in object values\n' +2023-10-11T03:55:32.965Z ' - Expected property
requestsFromUrl
to be of typestring
but received typeundefined
in object values'2023-10-11T03:55:32.966Z }
2023-10-11T03:55:32.967Z }
2023-10-11T03:55:32.968Z }
2023-10-11T03:55:32.970Z
2023-10-11T03:55:32.971Z Node.js v18.18.0
My script:
TIA
Beta Was this translation helpful? Give feedback.
All reactions