Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with puppeteer-extra #225

Closed
paularah opened this issue Nov 29, 2020 · 3 comments
Closed

Integration with puppeteer-extra #225

paularah opened this issue Nov 29, 2020 · 3 comments
Labels

Comments

@paularah
Copy link

Using puppeteer-extra gives me this error. This seems to be the case only when trying to use browserless with puppeteer-extra

UhandledPromiseRejectionWarning: Error: Could not find browser revision 818858. Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a supported Firefox browser binary.

@Kikobeats
Copy link
Member

Hey, that error message looks a thing related to the Firefox build rather than puppeteer-extra

BTW, puppeteer-firefox should be supported

puppeteer = requireOneOf(['puppeteer', 'puppeteer-core', 'puppeteer-firefox']),

Can you try with puppeteer-core? what happens in that case?

@edemagbenyo
Copy link

@paularah , did you find a solution to the error above?

@paularah
Copy link
Author

paularah commented Feb 10, 2021

@edemagbenyo I did.

//do all the puppeteer extra stuff above, use your plugins and then use your instance of puppeteer-extra with browserless like this.
await browserless.html(, { puppeteer:puppeteer-extra, })
This workaround works for me and is stable.

`// N/B: Integrating puppeteer-extra and browserless like this as specified in the docs doesn't work for me
const browserless = require('browserless')({ puppeteer })

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants