Tripadvisor Reviews Scraper avatar

Tripadvisor Reviews Scraper

Try for free

Pay $2.00 for 1,000 reviews

View all Actors
Tripadvisor Reviews Scraper

Tripadvisor Reviews Scraper

maxcopell/tripadvisor-reviews
Try for free

Pay $2.00 for 1,000 reviews

Get and download reviews for chosen places on Tripadvisor. Extract the review text, URL, rating, date of travel, published date, basic reviewer info, owner's response, helpful votes, images, review language, place details. Download reviews in XML, JSON, CSV.

Do you want to learn more about this Actor?

Get a demo
JN

actor-memory-limit-exceeded

Closed

jankucera opened this issue
2 months ago

Hi, we had an instance of this actor run that is showing as successful, but through API we received following error. Would you be able to explain why and how can we prevent this? {"name":"ApifyApiError","clientMethod":"ActorClient.start","statusCode":402,"type":"actor-memory-limit-exceeded","attempt":1,"httpMethod":"post","path":"/v2/acts/Hvp4YfFGyLM635Q2F/runs","originalStack":"\n at makeRequest (/function/node_modules/apify-client/dist/http_client.js:184:30)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async ActorClient.start (/function/node_modules/apify-client/dist/resource_clients/actor.js:86:26)\n at async ActorClient.call (/function/node_modules/apify-client/dist/resource_clients/actor.js:107:24)\n at async syncReviewsTripadvisor (/function/tripadvisorScrapperOldVersion.js:51:21)\n at async /function/func.js:109:46\n at async Promise.all (index 2)\n at async reviewsScrapping (/function/func.js:126:13)"}

mvolfik avatar

hi, are you sure that the API request which gave you this error really started a run? This error means that starting a new run would make you run over your concurrent memory limit (you can see this limit at the bottom left of Apify Console - see attached image), so no run should have been started by this request, and if there was one, that is our bug, so please let us know.

The solution for this is simple - don't start too many runs at the same time. If you are doing this from some loop, you can check your memory usage via this endpoint https://api.apify.com/v2/users/me/limits?token=<your token> - there is the field data.current.actorMemoryGbytes, which you can compare against data.limits.maxActorMemoryGbytes to see how much more concurrently occupied memory you can use.

mvolfik avatar

aha, I see there is a duplicate on tri_angle/expedia-hotels-com-reviews-scraper. closing this in favor of the other thread

Developer
Maintained by Apify
Actor metrics
  • 366 monthly users
  • 41 stars
  • 99.4% runs succeeded
  • 2.4 days response time
  • Created in Jan 2023
  • Modified 3 days ago
Categories