random error about interception
I get this error randomly, from what I see is not related to anything in my code.
I don't understand why.
9 Replies
Interception is tied to page.on request event, check if you have something like that
I know.
I only have enqueueLinks and enqueueLinksByClickingElements
I don't know if the second one is using page.on events
I would start with Disabling and enabling the mentioned methods, also adding interception for check and in the end important part is checking definition of methods…
@Andrey Bykov
any ideas regarding this ? seems like it is tied to enqueueLinksByClickingElements
genetic-orange•2y ago
enqueueLinksByClickingElements
is using request Interception indeed. I could assume there are some changes in the latest version of puppeteer and how it's handled, maybe also related to node 21. Will pass it to the team
@NeoNomade btw which version of crawlee are you using?3.8.0 latest release
genetic-orange•2y ago
latest is 3.8.1 though, but thanks!
Btw - could you provide minimum reproduction?
@Andrey Bykov sorry for not following up.
I just used the enqueueLinksByClickingElements. It is the last action on the page. Other than that I’m not doing anything special in particular
@Andrey Bykov I was working for many hours and I made a stupid mistake.
In the handler that contained the enqueueLinksByClickingElements I wasn't closing the page at the end ... I think this why it was failing.
I'm testing right now to see if issue appears again.
genetic-orange•2y ago
Thanks for the heads-up! Let me know whether it solves it 👌