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

Can't install NPM package due to connection discrimination, 403 response #29267

Open mashdragon opened 5 months ago

mashdragon commented 5 months ago

Current behavior

When npm tries to install Cypress, it fails with a 403 response. You can reproduce this using torsocks to load the files over a Tor connection: torsocks npm i

Debug logs

npm ERR! [FAILED] The Cypress App could not be downloaded.
npm ERR! [FAILED] 
npm ERR! [FAILED] Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm ERR! [FAILED] 
npm ERR! [FAILED] Otherwise, please check network connectivity and try again:
npm ERR! [FAILED] 
npm ERR! [FAILED] ----------
npm ERR! [FAILED] 
npm ERR! [FAILED] URL: https://download.cypress.io/desktop/13.7.1?platform=linux&arch=x64
npm ERR! [FAILED] Error: Failed downloading the Cypress binary.
npm ERR! [FAILED] Response code: 403
npm ERR! [FAILED] Response message: Forbidden
npm ERR! [FAILED] 
npm ERR! [FAILED] ----------

Cypress Version

13.7.1

Node version

v20.12.0

Package Manager

npm

Package Manager Version

10.5.0

Operating system

Linux

Operating System Version

?

Other

Related is #29124. The best fix would be to remove Cloudflare discrimination against connections since forcing the manual install method is burdensome to developers who are blocked by Cloudflare or who want privacy from Cypress and/or Cloudflare logging installs.

jennifer-shehane commented 5 months ago

Hey @mashdragon, thanks for opening this request and providing a way to reproduce it ourselves. Right now we're not able to prioritize this work. We do suggest using the manual install as a workaround. I'll leave this issue open as a proposal for the future.