TikTok Ads Scraper avatar
TikTok Ads Scraper
Try for free

1 day trial then $30.00/month - No credit card required now

View all Actors
TikTok Ads Scraper

TikTok Ads Scraper

lexis-solutions/tiktok-ads-scraper
Try for free

1 day trial then $30.00/month - No credit card required now

Find and scrape current and past ads on TikTok. Get video URL, dates and locations, impressions, and more. Download and analyze data from the TikTok Ads Library for competitive analysis.

CD

Cannot read properties of undefined (reading 'map')

Closed

confirmable_duty opened this issue
3 months ago

2024-06-19T08:04:32.318Z ACTOR: Pulling Docker image of build VewBI1EMd8dJ5VLJI from repository. 2024-06-19T08:04:51.689Z ACTOR: Creating Docker container. 2024-06-19T08:04:51.851Z ACTOR: Starting Docker container. 2024-06-19T08:04:53.272Z yarn run v1.22.19 2024-06-19T08:04:53.298Z $ node dist/main.js --silent 2024-06-19T08:04:53.874Z INFO System info {"apifyVersion":"3.1.2","apifyClientVersion":"2.6.3","crawleeVersion":"3.3.0","osType":"Linux","nodeVersion":"v16.20.2"} 2024-06-19T08:04:54.448Z INFO CheerioCrawler: Status message: Crawled 0/1 pages, 0 errors. 2024-06-19T08:04:54.456Z INFO CheerioCrawler: Starting the crawl 2024-06-19T08:04:55.790Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:04:55.796Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:04:55.798Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:04:55.800Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:04:55.804Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:1%7D 2024-06-19T08:05:00.419Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:00.421Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:00.423Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:00.425Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:00.426Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:2%7D 2024-06-19T08:05:04.956Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:04.959Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:04.961Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:04.963Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:04.965Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:3%7D 2024-06-19T08:05:09.458Z ERROR CheerioCrawler: Request failed and reached maximum retries. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:09.461Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:09.463Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:09.465Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:09.467Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22method%22:%22GET%22,%22uniqueKey%22:%22https://library.tiktok.com%22%7D 2024-06-19T08:05:09.498Z INFO CheerioCrawler: All requests from the queue have been processed, the crawler will shut down. 2024-06-19T08:05:09.699Z INFO CheerioCrawler: Crawl finished. Final request statistics: {"requestsFinished":0,"requestsFailed":1,"retryHistogram":[null,null,null,1],"requestAvgFailedDurationMillis":1272,"requestAvgFinishedDurationMillis":null,"requestsFinishedPerMinute":0,"requestsFailedPerMinute":3,"requestTotalDurationMillis":1272,"requestsTotal":1,"crawlerRuntimeMillis":15549} 2024-06-19T08:05:09.701Z INFO CheerioCrawler: Error analysis: {"totalErrors":1,"uniqueErrors":1,"mostCommonErrors":["1x: Cannot read properties of undefined (reading 'map') (/home/myuser/dist/routes.js:111:29)"]} 2024-06-19T08:05:09.703Z INFO CheerioCrawler: Terminal status message: Finished! Total 1 requests: 0 succeeded, 1 failed. 2024-06-19T08:05:09.760Z INFO Actor finished successfully (exit code 0) 2024-06-19T08:05:09.772Z Done in 16.52s.

CD

confirmable_duty

3 months ago

Please guide me through this error, or fix the product if this issue is persistent. Thanks in advance!

lexis-solutions avatar

Can you please share the actor input, or share the run? Thanks.

CD

confirmable_duty

3 months ago

Here's the input { "maxPages": 20, "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": [ "BUYPROXIES94952" ], "apifyProxyCountry": "US" }, "query": ""creative society"" }

Here's the log : 2024-06-19T08:04:32.318Z ACTOR: Pulling Docker image of build VewBI1EMd8dJ5VLJI from repository. 2024-06-19T08:04:51.689Z ACTOR: Creating Docker container. 2024-06-19T08:04:51.851Z ACTOR: Starting Docker container. 2024-06-19T08:04:53.272Z yarn run v1.22.19 2024-06-19T08:04:53.298Z $ node dist/main.js --silent 2024-06-19T08:04:53.874Z INFO System info {"apifyVersion":"3.1.2","apifyClientVersion":"2.6.3","crawleeVersion":"3.3.0","osType":"Linux","nodeVersion":"v16.20.2"} 2024-06-19T08:04:54.448Z INFO CheerioCrawler: Status message: Crawled 0/1 pages, 0 errors. 2024-06-19T08:04:54.456Z INFO CheerioCrawler: Starting the crawl 2024-06-19T08:04:55.790Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:04:55.796Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:04:55.798Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:04:55.800Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:04:55.804Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:1%7D 2024-06-19T08:05:00.419Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:00.421Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:00.423Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:00.425Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:00.426Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:2%7D 2024-06-19T08:05:04.956Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:04.959Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:04.961Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:04.963Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:04.965Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22retryCount%22:3%7D 2024-06-19T08:05:09.458Z ERROR CheerioCrawler: Request failed and reached maximum retries. TypeError: Cannot read properties of undefined (reading 'map') 2024-06-19T08:05:09.461Z at handleSearch (/home/myuser/dist/routes.js:111:29) 2024-06-19T08:05:09.463Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2024-06-19T08:05:09.465Z at async /home/myuser/dist/routes.js:26:35 2024-06-19T08:05:09.467Z at async wrap (/home/myuser/node_modules/@apify/timeout/index.js:52:21) {"id":"CAfUFdsYJLvJW2V","url":"https://library.tiktok.com%22,%22method%22:%22GET%22,%22uniqueKey%22:%22https://library.tiktok.com%22%7D 2024-06-19T08:05:09.498Z INFO CheerioCrawler: All requests from the queue have been processed, the crawler will shut down. 2024-06-19T08:05:09.699Z INFO CheerioCrawler: Crawl finished. Final request statistics: {"requestsFinished":0,"requestsFailed":1,"retryHistogram":[null,null,null,1],"requestAvgFailedDurationMillis":1272,"requestAvgFinishedDurationMillis":null,"requestsFinishedPerMinute":0,"requestsFailedPerMinute":3,"requestTotalDurationMillis":1272,"requestsTotal":1,"crawlerRuntimeMillis":15549} 2024-06-19T08:05:09.701Z INFO CheerioCrawler: Error analysis: {"totalErrors":1,"uniqueErrors":1,"mostCommonErrors":["1x: Cannot read properties of undefined (reading 'map') (/home/myuser/dist/routes.js:111:29)"]} 2024-06-19T08:05:09.703Z INFO CheerioCrawler: Terminal status message: Finished! Total 1 requests: 0 succeeded, 1 failed. 2024-06-19T08:05:09.760Z INFO Actor finished successfully (exit code 0) 2024-06-19T08:05:09.772Z Done in 16.52s.

CD

confirmable_duty

3 months ago

Please tell me if there's anything else you need; thanks in advance

lexis-solutions avatar

@confirmable_duty, the issue is now fixed and you can continue using the actor. Thanks for reporting!

Developer
Maintained by Community
Actor metrics
  • 19 monthly users
  • 16 stars
  • 100.0% runs succeeded
  • 0.44 hours response time
  • Created in Oct 2023
  • Modified 3 months ago