Casper
03/07/2025, 1:15 PMbash
ERROR PlaywrightCrawler: Request failed and reached maximum retries. ApifyApiError: Dataset was not found
2025-03-06T17:37:21.112Z clientMethod: DatasetClient.pushItems
2025-03-06T17:37:21.113Z statusCode: 404
2025-03-06T17:37:21.115Z type: record-not-found
2025-03-06T17:37:21.119Z httpMethod: post
2025-03-06T17:37:21.120Z path: /v2/datasets/<redacted>/items
2025-03-06T17:37:21.122Z stack:
2025-03-06T17:37:21.124Z at makeRequest (/home/myuser/node_modules/apify-client/dist/http_client.js:187:30)
2025-03-06T17:37:21.125Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-03-06T17:37:21.127Z at async DatasetClient.pushItems (/home/myuser/node_modules/apify-client/dist/resource_clients/dataset.js:104:9)
2025-03-06T17:37:21.129Z at async processSingleReviewDetails (file:///home/myuser/dist/helperfunctions.js:365:5)
2025-03-06T17:37:21.131Z at async Module.processReviews (file:///home/myuser/dist/helperfunctions.js:379:13)
2025-03-06T17:37:21.133Z at async getReviews (file:///home/myuser/dist/main.js:37:5)
2025-03-06T17:37:21.135Z at async PlaywrightCrawler.requestHandler [as userProvidedRequestHandler] (file:///home/myuser/dist/main.js:98:13)
2025-03-06T17:37:21.137Z at async wrap (/home/myuser/node_modules/@apify/timeout/cjs/index.cjs:54:21)
2025-03-06T17:37:21.139Z data: undefined {"id":"<redacted>","url":"<redacted>?sort=recency&languages=all","method":"GET","uniqueKey":"https://www.trustpilot.com/review/<redacted>?languages=all&sort=recency"}
`
How can I ensure that the datasets are created ahead of time when running the scraper before it collects data and then fails because the dataset cant be created or does not exist?Hall
03/07/2025, 1:15 PMPepa J
03/07/2025, 10:34 PMCasper
03/07/2025, 11:28 PMPepa J
03/17/2025, 9:27 AMCasper
03/17/2025, 9:33 AMPepa J
03/17/2025, 10:17 AMPepa J
03/18/2025, 8:40 AM