-
Notifications
You must be signed in to change notification settings - Fork 9k
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
[Bug]: Executable path is not properly generated when using PUPPETEER_BROWSER_REVISION=stable
#11781
Comments
PUPPETEER_BROWSER_REVISION
PUPPETEER_BROWSER_REVISION=stable
This issue was not reproducible. Please check that your example runs locally and the following:
Once the above checks are satisfied, please edit your issue with the changes and we will |
@alexandcote
|
Also, if you need the stable version, we recommend using the version bundled with Puppeteer. Resolving aliases at launch time is unfortunately not very reliable so it is out of scope for Puppeteer for now. |
The weird part is if you only specify |
@alexandcote yes, it's because resolving the stable label to a specific version requires a network call to figure out which version is currently stable and that can be quite unreliable so you probably don't want that when you launch the browser. This PUPPETEER_BROWSER_REVISION variable was there before Chrome for Testing and before it was possible to install versions by alias so I guess this unintended side effect of this new ability that we try to resolve configuration during the installation. |
@OrKoN I understand thanks for the context 👍🏻 😄 Do you see any value in adding a feature to allow consumers to always use the last stable version? I'm proposing this because when a security issue happens in Chrome, consumers have to wait for a Puppeteer update and update the consumer service (in our case in many different services). Alternatively, we could install Chrome manually and skip the installation during Puppeteer installation. This required more setup. What I'm proposing is if What do you think 😄 ? |
Good suggestion, I would probably go in the direction of adding metadata to the browser folders though. |
Minimal, reproducible example
Error string
The executablePath uses
stable
while the path contains the actual browser revision.Bug behavior
Background
No response
Expectation
The Executable Path should be generated using the actual installed browser revision.
Reality
The executable path tries to get the
stable
revision and will never exist.I was able to temporarily fix the problem using this function:
Puppeteer configuration file (if used)
No response
Puppeteer version
21.10.0
Node version
20.11.0
Package manager
npm
Package manager version
10.2.4
Operating system
Windows
The text was updated successfully, but these errors were encountered: