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

Encountering browserSocket error using Custom Chromium 66 #30200

Closed
1 of 6 tasks
sgreen233 opened this issue Sep 5, 2024 · 7 comments
Closed
1 of 6 tasks

Encountering browserSocket error using Custom Chromium 66 #30200

sgreen233 opened this issue Sep 5, 2024 · 7 comments

Comments

@sgreen233
Copy link

sgreen233 commented Sep 5, 2024

Description

When I test chrome66 using cypress, I expect it to work, but it gets stuck. I used the DEBUG command to check and found an error:https-proxy received error on client browserSocket { err: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' }, url: 'example.cypress.io:443' }

URL of Issue(s)

https://docs.cypress.io/guides/guides/launching-browsers#Chrome-Browsers

Steps to replicate

  1. Use chromium version
  2. Stuck while running test
  3. Use DEBUG to see the error
  4. cypress:https-proxy received error on client browserSocket { err: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' }, url: 'example.cypress.io:443' }

Browser

Google chromium 66

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

No response

@MikeMcC399
Copy link
Contributor

@sgreen233

This issue list is about errors in the documentation.

If you think that there is a bug in the Cypress software then you can open an issue on https://github.com/cypress-io/cypress/issues and supply the requested information.

Please make sure that you are using a supported operating system and a supported version of Node.js (18.x / 20.x / 22.x) according to https://docs.cypress.io/guides/getting-started/installing-cypress#System-requirements

According to https://docs.cypress.io/guides/guides/launching-browsers#Browser-versions-supported

Cypress supports the browser versions below:

Chrome 64 and above. Chrome 80 and above is required for cypress open usage.

@sgreen233
Copy link
Author

I'm using the 18.x version of the node.js and make sure the operating system supports the use of the browser. When using cypress, I used the command of cypress run, but the problem still appears

@sgreen233
Copy link
Author

It seems like that there was a problem in launching Chrome with cypress.I wonder if chromium 66 is supported with the cypress run command

@MikeMcC399
Copy link
Contributor

@sgreen233

It seems like that there was a problem in launching Chrome with cypress.I wonder if chromium 66 is supported with the cypress run command

Officially it is supported.

I tried a few versions of Chromium < 80 on Ubuntu 20.04 with Cypress 13.14.2 and Node.js v18.20.4 with npx cypress run. They gave different errors or timed out, so I could not demonstrate that the versions which are supposed to be supported do actually work.

It's up to you if you want to report your problem on https://github.com/cypress-io/cypress/issues , however given that this browser is 6 years old I don't expect anything except the documentation to be fixed.

It's already suggested to drop support for Chrome < 80 in the next major release of Cypress.

@jennifer-shehane jennifer-shehane transferred this issue from cypress-io/cypress-documentation Sep 6, 2024
@MikeMcC399
Copy link
Contributor

@sgreen233

Please add your configuration information.

Cypress version: ?
Operating system type and version: ?
Node.js version: ?

I tried on a virtual Ubuntu system and I could get Chromium 66 to run with
Cypress 11.2.0 and Node.js v14.21.3, but only in headed mode. In headless mode it hung.

On Cypress 12.17.4 / Node.js v14.21.3 I got the error

'Fetch.enable' wasn't found

On Cypress 13.14.2 / Node.js v16.20.2 I got the error

'Runtime.addBinding' wasn't found

I installed using

npx @puppeteer/browsers install chromium@540276

@sgreen233
Copy link
Author

Cypress version: 10.8.0
Operating system type and version: ubuntu 18.04
Node.js version: 13
You are right, it can only be run in headed mode, and the problem was solved after I used this mode.

@MikeMcC399
Copy link
Contributor

@sgreen233

  • If your problem is solved, then I suggest to close this issue and follow instead Error Runtime.addBinding with Chromium 66 #30205 as it does seem that there is a documentation issue. In general the documentation only covers the current latest version Cypress 13.x so it needs to be correct for this version and not so much for Cypress 10.x.
  • Node.js 13 is no longer supported, but I don't think it has an influence on this issue.

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

No branches or pull requests

2 participants