question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.3.1 - cypress often fails to load in open mode - websocket error

See original GitHub issue

Current behavior:

image

Desired behavior:

No error

Steps to reproduce: (app code and test code)

This happens intermittently but very often on 3.3.1. If you log off and on again it is fine.

If you switch back to cypress 3.3.0, even without logging off it is fine.

Versions

3.3.1 (3.3.0 is fine) OS: windows

Most of us use proxies, usually fiddler. When 3.3.0 was release we had to have this:

$ env | grep PROXY
HTTP_PROXY=http://127.0.0.1:8888
NO_PROXY=undefined
HTTPS_PROXY=http://127.0.0.1:8888 (edited) 

One of our devs reckons the following proxy settings in 3.3.1 fix this bug:

$ env | grep -i proxy
HTTP_PROXY=
NO_PROXY=undefined
HTTPS_PROXY=

I believe the NO_PROXY needing “undefined” was due to another bug you had in your network code.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
flotwigcommented, Jul 12, 2019

For sure, you can use shell redirection:

DEBUG=cypress:* cypress open > log-file.txt 2>&1
0reactions
Amrita19900406commented, Sep 8, 2021

@vijesh-koroth – how do we use this in the index.js in plugins?Is this correct. not working for me module.exports = (on, config) => {

args.push(‘–disable-gpu’) args.push(‘–disable-gpu-compositing’) args.push(‘–disable-gpu-rasterization’) args.push(‘–config baseUrl=http://localhost:3000’) // on is used to hook into various events Cypress emits // config is the resolved Cypress config }

Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress-io/cypress - Gitter
I getting weird issue where cypress opens empty Chrome window with following in ... failed: Error during WebSocket handshake: net::ERR_INVALID_HTTP_RESPONSE.
Read more >
Cypress test not starting and throwing handshake error in ...
My laptop is an office laptop is behind proxy. I checked the cypress proxy setting and I see that the proxy is correctly...
Read more >
Changelog - Cypress Documentation
Fixed an issue where the Cypress migration wizard would fail to run in global mode on newer versions of Cypress. Addressed in #25138....
Read more >
cypress: Versions - Openbase
Fixed an issue with cy.session() such that re-running tests in open mode will now correctly recreate a session. Before this change, an error...
Read more >
Changelog — elabftw 4.4.2 documentation
In that case, they can fix it by going in edit mode of the experiment, clicking the top right ... If this value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found