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

Nats.io Connection Error #3170

Open
metecik opened this issue Jun 2, 2023 · 1 comment
Open

Nats.io Connection Error #3170

metecik opened this issue Jun 2, 2023 · 1 comment
Labels
bug Something isn't working needs repro Needs an example to reproduce

Comments

@metecik
Copy link

metecik commented Jun 2, 2023

What version of Bun is running?

0.6.6

What platform is your computer?

Darwin 22.4.0 arm64 arm

What steps can reproduce the bug?

Using nats npm library: "nats": "^1.4.12"

When you try to connect nats you get error:

405 |         this._secureEstablished = false;
406 |         this._securePending = true;
407 |         if (connectListener) this.on("secureConnect", connectListener);
408 |       } else if (connectListener) this.on("connect", connectListener);
409 | 
410 |       bunConnect(
         ^
error: Failed to connect
      at connect (node:net:410:6)
      at /Work/matches/base/node_modules/nats/lib/nats.js:938:16
      at new  (/Work/matches/base/node_modules/nats/lib/nats.js:225:2)
      at /Work/matches/base/node_modules/nats/lib/nats.js:250:9
      at connect (/Work/matches/base/lib/natsClient.js:59:18)
      at /Work/matches/workers/socket/server.js:63:0

What is the expected behavior?

connect and listen nats channels

What do you see instead?

No response

Additional information

No response

@metecik metecik added the bug Something isn't working label Jun 2, 2023
@Electroid Electroid added the needs repro Needs an example to reproduce label Feb 5, 2024
@nektro nektro assigned nektro and unassigned nektro May 10, 2024
@nektro
Copy link
Contributor

nektro commented May 10, 2024

note to future self, this works sometimes in present versions but is very flaky. needs more investigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro Needs an example to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants