puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

Timing out when we set "RemoteDebuggingAllowed" to 0 for chrome

Open jaydeep009 opened this issue 9 months ago • 3 comments

"RemoteDebuggingAllowed" should be set to 0 in registry under path HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
If this does not exist , then create one.

If this is set and we run puppeteer sharp for html to pdf conversion then it times out.

Image

jaydeep009 avatar Feb 14 '25 07:02 jaydeep009

If you don't allow remote debugging, puppeteer can't automate your browser.

kblok avatar Feb 14 '25 11:02 kblok

OK, so if this registry key is enabled, then puppeteer sharp will not be able to perform automation and then conversion. Is there a workaround for these or is it mandatory to keep this key disabled?

For workaround currently i am shipping chrome headless binaries so it doesn't point to installed chrome

jaydeep009 avatar Feb 14 '25 12:02 jaydeep009

OK, so if this registry key is enabled, then puppeteer sharp will not be able to perform automation and then conversion. Is there a workaround for these or is it mandatory to keep this key disabled?

For workaround currently i am shipping chrome headless binaries so it doesn't point to installed chrome

Yes. You won't be able to automate chrome with any automation tool with that flag.

kblok avatar Feb 14 '25 12:02 kblok