Skip to content

Conversation

Galoretka
Copy link

@Galoretka Galoretka commented Aug 14, 2025

Description

Add doc/TROUBLESHOOTING.md with grounded guidance:

  • How to enable debug logs (Node/Browser) using verified namespaces: libp2p:tcp, libp2p:websockets, libp2p:webtransport, - libp2p:kad-dht, libp2p:connection-manager:dial-queue

Common issues with resolutions:

  • “No transport available for address”
  • Dial failures (“dial failed”, “could not dial”)
  • “Invalid multiaddr format”
  • WebTransport listen limitation in Node.js
  • Missing peer:discovery / peer:connect events

Update doc/GETTING_STARTED.md Debugging examples:

  • Replace non-existent libp2p:dialer with libp2p:connection-manager:dial-queue
  • Add link to doc/TROUBLESHOOTING.md

Fixes #2101

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@Galoretka Galoretka requested a review from a team as a code owner August 14, 2025 13:40
@Galoretka Galoretka changed the title Docs/add troubleshooting md extend debugging 2101 docs: add TROUBLESHOOTING.md and extend Debugging section Aug 14, 2025
Comment on lines 97 to 109
### WebTransport cannot listen in Node.js

Symptoms:

- Attempting to listen using WebTransport fails.

Context:

- The WebTransport transport currently only supports dialing to other nodes. Listening requires QUIC support to land in Node.js first.

Actions:

- Use WebTransport for dialing only. For listening in Node.js, use supported server-side transports such as TCP or WebSockets.
Copy link
Member

@achingbrain achingbrain Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct - WebTransport is not supported at all in Node.js right now.

Where did this information come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct - WebTransport is not supported at all in Node.js right now.

Where did this information come from?

My bad, updated doc

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

Successfully merging this pull request may close these issues.

docs: create troubleshooting.md
2 participants