Comments (5)
Sometimes the libp2p app runs for over an hour without an issue, an other times this Issue occurs within a few seconds after startup. If someone is trying to reproduce this error, restart the app after 5 minutes if the error does not appear. It's a race condition, so it's not easy to reproduce. It appears to involve the connection between two nodes.
from js-libp2p.
In an attempt to debug the root cause, I reverted back to js-libp2p v1.2.1, from the latest v1.3.1. I started to see the same error as above. I realized what had changed is that I was using node.js v20 when I was previously using node.js v16.
I've been doing some testing with js-libp2p v1.3.1 and node.js v16. So far I have not see the error in this Issue.
from js-libp2p.
I'm closing this Issue as I think it's tied to some combination of switching node versions, node_modules, and package-lock.json.
I've successfully gotten the error to go away on node.js v16 on Ubuntu 22. And I've gotten it to run on node.js v20 on Ubutnu 20.
from js-libp2p.
Guys, I'm having the same problem. Nowadays I'm using node 20.11, but in Windows and I tried return to v16 however the problem continues.
To be more specific, I'm working with IPFS (helia) and orbitDb, this happens when the terminal reloads, in other words, when the application creates more than one connection (I believe this is the cause of the problem).
from js-libp2p.
If you haven't tried it yet, delete your node_modules
folder and the package-lock.json
file. Then reinstall dependencies with npm install
. That seemed to make a difference for me. It not a silver bullet, but it was definitely one of the factors.
from js-libp2p.
Related Issues (20)
- Tracking Issue - WebRTC direct in Node.js HOT 1
- More Conservative RTCPeerConnection Instantiation
- Tracking - WebRTC browser bugs
- Increase WebRTC max message size
- Use `localPort` option during TCP connect HOT 1
- Remove the autodialer? HOT 3
- circuit-relay-server limits and shades of transient HOT 6
- private ipv6 address identified as public HOT 2
- `.stop()` sometimes hangs indefinitely HOT 8
- [email protected] release issue
- Websocket server yield nullpointer exception if address is missing HOT 1
- Errors - use `.name` instead of `.code`
- Exported subpaths of @libp2p/crypto HOT 6
- Flaky Firefox WebRTC test HOT 2
- Ping recording connection latency/aliveness HOT 2
- When failing to establish WebRTC connection a "half open" connection can occur HOT 1
- WebRTC SDP handshake connection transient?
- Remove private key from peer id HOT 1
- Cannot use kad-dht for contentRouting query
- epic: expose transport metrics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-libp2p.