national-gold•3y ago
Override browser permission on PuppeteerCrawler
Hi, a quick question: how do I override a certain permission on a page when using PuppeteerCrawler? Something like so:
When I run it, I get a warning message:
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Cannot read private member from an object whose class did not declare it
I understand that I'm accessing private prop but how/where do I override such permissions on PuppeteerCrawler? 🙂
Thanks! 🙏6 Replies
national-goldOP•3y ago
Hi @vladdy, can you please assist with this? 🙏
frail-apricot•3y ago
Oh..interesting
Let me take a look
national-goldOP•3y ago
Thank you!
frail-apricot•3y ago
do you happen to have a stacktrace too?
also, can you try getting the context via page.browserContext() instead (followed by the same context.overridePermissions calls)?
national-goldOP•3y ago
@stacktrace:
Cool, testing...
Perfect! That works. Thanks! ✨
frail-apricot•3y ago
oh, sweet
No worries