cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.69k stars 3.16k forks source link

"Browser was not launched through Cypress" after 3.3.0 upgrade #4410

Closed flotwig closed 5 years ago

flotwig commented 5 years ago

After installing 3.3.0 I get the Whoops' window ('This browser was not launched through Cypress'), trying to run Chrome 74. The Cypress add-in is loaded in to Chrome. The add-in is shown as version 0.0.0 The tests run fine under Electron 61.

Back to Cypress 3.2.0 and Chrome 74 runs again without problems.

Originally posted by @petermouton in https://github.com/cypress-io/cypress/issues/4260#issuecomment-494693673


Cypress 3.3.1

Cypress_Chrome_error

Originally posted by @PetMou in https://github.com/cypress-io/cypress/issues/4260#issuecomment-499488347

flotwig commented 5 years ago

@petermouton @PetMou It looks like Chrome is being launched with an incorrect path to the spec, which is causing this error. Can you share the full DEBUG logs, from the time to when you launch Cypress to when you launch Chrome and experience this error? Instructions for debug logs are here: https://docs.cypress.io/guides/guides/debugging.html#Print-DEBUG-logs

PetMou commented 5 years ago

Thanks Zach. I added the debug log cypress_debug_4410.log

PetMou commented 5 years ago

Parallel to issue #4260, I tried several options. Extra information:

Hope this gives some extra clues.

flotwig commented 5 years ago

Hey @PetMou, I was able to reproduce your issue, can you try something for me? Run with NO_PROXY=undefined,localhost.

The core problem is that requests for Cypress's internal server on localhost are going through your proxy, which will be fixed with #4358 (should be out in 3.3.2).

PetMou commented 5 years ago

Wow. That did the trick! Thank you!

Check, one more happy customer! :))

cypress-bot[bot] commented 5 years ago

The code for this is done in cypress-io/cypress#4358, but has yet to be released. We'll update this issue and reference the changelog when it's released.

cypress-bot[bot] commented 5 years ago

Released in 3.3.2.

munna73 commented 4 years ago

I am having this issue in Cypress 4.10.0. I am using my work computer.Works fine on electron 80 but when I select chrome it gives error The browser was not launched through cypress , tests can not run

jennifer-shehane commented 4 years ago

This issue will be closed to further comment as the exact issue here was resolved and tested.

@munna73 If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix.