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

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

Open
mashdragon opened this issue Apr 4, 2024 · 1 comment
Open
Labels
existing workaround stage: proposal 💡 No work has been done of this issue topic: installation Issue during installation or downloading Cypress type: feature New feature that does not currently exist

Comments

@mashdragon
Copy link

mashdragon commented Apr 4, 2024

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.

@mashdragon mashdragon added the topic: installation Issue during installation or downloading Cypress label Apr 4, 2024
@jennifer-shehane jennifer-shehane added type: feature New feature that does not currently exist existing workaround labels Apr 15, 2024
@jennifer-shehane
Copy link
Member

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.

@jennifer-shehane jennifer-shehane added the stage: proposal 💡 No work has been done of this issue label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
existing workaround stage: proposal 💡 No work has been done of this issue topic: installation Issue during installation or downloading Cypress type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants