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

BUG | Firefox Failed to Connect to the Backend #34

Open
5 of 7 tasks
OrbisK opened this issue Feb 11, 2025 · 3 comments
Open
5 of 7 tasks

BUG | Firefox Failed to Connect to the Backend #34

OrbisK opened this issue Feb 11, 2025 · 3 comments

Comments

@OrbisK
Copy link
Contributor

OrbisK commented Feb 11, 2025

Describe the bug

Image

Reproduction

https://node-modules.dev/graph#selected=@pnpm/[email protected]&install=@pnpm/core

System Info

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 49.91 GB / 62.58 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 23.5.0 - ~/.nvm/versions/node/v23.5.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v23.5.0/bin/npm
    pnpm: 8.15.9 - ~/.nvm/versions/node/v23.5.0/bin/pnpm
    bun: 1.1.42 - ~/.nvm/versions/node/v23.5.0/bin/bun
  Browsers:
    Chrome: 130.0.6723.69
    Firefox: 135.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
@serkodev
Copy link
Contributor

I tested it in Firefox 135.0, and there are no errors.
Can you try disabling some extensions or opening it in Private mode to see if there are any errors?

@OrbisK
Copy link
Contributor Author

OrbisK commented Feb 14, 2025

I tested it in Firefox 135.0, and there are no errors. Can you try disabling some extensions or opening it in Private mode to see if there are any errors?

Can reproduce this across devices/os (windows 11 and ubuntu). Same problem with private tab.

Image

Same problem if I run pnpm wc:dev. No errors in terminal

@Joery-M
Copy link
Contributor

Joery-M commented Feb 15, 2025

I'm able to reproduce on Firefox 135, Windows.

Error is caused by a timeout whilst waiting for the result from the WC, currently the timeout is set to roughly 5 seconds, which apparently isn't enough for Firefox.

async getPayload() {
let retries = 50
// eslint-disable-next-line no-unmodified-loop-condition
while (!result && retries > 0) {
retries--
await new Promise(r => setTimeout(r, 100))
}
if (!result) {
throw new Error('Failed to get dependencies')
}
return result
},

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

No branches or pull requests

3 participants