-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Impossible to set --proxy-bypass-list
via ELECTRON_EXTRA_LAUNCH_ARGS
#21172
Comments
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
As far as it seems, this is still an issue in cypress 12.11.0. |
@sceee Can you try it?
like this:
|
@hongdeyuan what's the difference in your command line than what I described above that does not work (besides the fact that you are using docker what I am not)? |
Oh, I thought it was using Docker; If you are not using Docker, you can try the following actions: You can do this: Running on your machine
|
@hongdeyuan thanks but this also does not seem to be working as written in the original issue. Additionally, I just reconfirmed it does not work. |
inconceivable 🤔️, from the perspective of chromium-command-line-switches, it supports setting |
@sceee If you can provide a reproduction case demonstrating this issue in action (ideally a Before digging too far into this I will point out that the Electron docs use a semicolon |
@mike-plummer I just confirmed it does also not work using semicolon Actually I moved a long time ago away from trying to use Electron and instead use Chrome as for Chrome, I can just use
in cypress config and it just works. Creating a repro is unfortunately not that easy as Firestore emulator is involved. The issue that is hitting here is #2374 . Using Chrome with that proxy-bypass-list config works but Electron just can't establish connections to Firestore as the Firestore connection channel seems to be intercepted by Cypress. |
@sceee Thanks for the extra context and workaround, glad you got something working for your use case. I'm going to go ahead and close this issue, but if anyone can provide a reproduction case we can reopen and investigate. |
Current behavior
Inspired by #2374 (comment) to work around #2374, I am trying to set
ELECTRON_EXTRA_LAUNCH_ARGS
to--proxy-bypass-list=<-loopback>,localhost:8080
.Unfortunately, I can not get it to work for Electron, setting this for Chrome works through the
before:browsers:launch
hook but for Electron, I cannot get it working through theELECTRON_EXTRA_LAUNCH_ARGS
environment variable no matter what I try.Desired behavior
I can set
--proxy-bypass-list
viaELECTRON_EXTRA_LAUNCH_ARGS
to<-loopback>,localhost:8080
.Test code to reproduce
I tried to set
ELECTRON_EXTRA_LAUNCH_ARGS
to--proxy-bypass-list=<-loopback>,localhost:8080
the following ways:set ELECTRON_EXTRA_LAUNCH_ARGS="--proxy-bypass-list=<-loopback>,localhost:8080"
on Windows as described here in the docslaunchOptions
equal and similar as I am doing it for Chromecross-env
in the npm script starting cypress:cross-env ELECTRON_EXTRA_LAUNCH_ARGS=\"--proxy-bypass-list=<-loopback>,localhost:8080\" cypress open
Unfortunately, none of those and no combination of those worked even though since #8001 (see https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/environment.js#L85), key-value pairs should also be supported and are also mentioned here #8399 (comment) .
The electron switch is documented here https://www.electronjs.org/de/docs/latest/api/command-line-switches#--proxy-bypass-listhosts .
Cypress Version
9.5.4
Other
No response
The text was updated successfully, but these errors were encountered: