PlaywrightCrawler actor not finishing requestQueue
I have a playwright Actor that will has 10 URLs added to its queue before i kick it off with
.run()
. But the actor doesn't finish all 10 URLs. It will process between 4 and 7, then the Log for the run will just show statistics message repeated every second.
Note that this happens in my local runs of this Actor as well. The total number of URLs scraped (out of 10) varies from run to run, minimum 1 URL and max 7 (of 10 total).
This is the message it shows on repeat, on my local and on Apify platform:
Why would it stop pulling from the requestsQueue? There are no errors in the Actor prior to this.8 Replies
@kennysmithnanic just advanced to level 1! Thanks for your contributions! 🎉
rising-crimson•13mo ago
Hi, could you share ID (or URL) of your run?
extended-salmonOP•13mo ago
@ondro_k here ya go: https://console.apify.com/actors/Ii5B19kfFomWR9Ggo/runs/nkLUqHl7YkyCfF2Ox#output
rival-black•13mo ago
Hi, did you find out what was wrong? I am having the same issue while using a playwright browser in crawlee.
foreign-sapphire•12mo ago
I have had similar problem with playwright crawler that it finishes and there were still pending requests in the queue.
But now this happened. Pending requests =
-5
, how can this happen?
extended-salmonOP•12mo ago
I never figured out why this was happening. I wound up starting my project from scratch again from the base playwright actor provided by apify and I haven’t had this problem again.
flat-fuchsia•12mo ago
These two issues seem unrelated. In the run from kenny, all requests get fetched from the queue, but then the Actor stalls while handling them.
To check your issue @HonzaS, we would need more info.
foreign-sapphire•12mo ago
@vojtechmaslan I have shared you the run via private message. Thanks.