Not working with latest Puppeteer versions
smashah opened this issue · comments
The request._client
property is now private resulting in the following error:
return (await client.send("Network.getCookies", urls)).cookies;
TypeError: Cannot read properties of undefined (reading 'send')
Latest versions expose the private client via a method:
https://github.com/puppeteer/puppeteer/pull/8556/files
This should work for backwards compatibility:
return (await (typeof client === "function" ? client() : client).send("Network.getCookies", urls)).cookies;
I have submitted PR #79
Please review and release a new version as a lot of people are relying on this library.
Thanks
Latest versions expose the private client via a method:
https://github.com/puppeteer/puppeteer/pull/8556/files
This should work for backwards compatibility:
return (await (typeof client === "function" ? client() : client).send("Network.getCookies", urls)).cookies;
not working
I have submitted PR #79
Please review and release a new version as a lot of people are relying on this library.
Thanks
can run?
Having the same issue. Any way to fix it?
{
"puppeteer": "^15.4.0",
"puppeteer-page-proxy": "^1.2.8"
}
Any updates?
cc @Cuadrix
Same issue here any updates ?
"dependencies": {
"puppeteer": "^16.1.0",
"puppeteer-page-proxy": "^1.2.8",
}
Current master works for me with latest merge.