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

Unhandled error: ERR_SDP_HANDSHAKE_ABORTED #2386

Closed
christroutner opened this issue Jan 31, 2024 · 2 comments
Closed

Unhandled error: ERR_SDP_HANDSHAKE_ABORTED #2386

christroutner opened this issue Jan 31, 2024 · 2 comments

Comments

@christroutner
Copy link

Severity:

  • Critical - System crash, application panic.

Description:

I'm running libp2p in a node.js environment. An unhandled error is frequently thrown that crashes the application.

Here is the error message:

file:///home/trout/work/ipfs-file-pin-service/node_modules/@libp2p/webrtc/dist/src/private-to-private/initiate-connection.js:44
            connectedPromise.reject(new CodeError('SDP handshake aborted', 'ERR_SDP_HANDSHAKE_ABORTED'));
                                    ^

CodeError: SDP handshake aborted
    at AbortSignal.sdpAbortedListener (file:///home/trout/work/ipfs-file-pin-service/node_modules/@libp2p/webrtc/dist/src/private-to-private/initiate-connection.js:44:37)
    at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:736:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:678:26)
    at abortSignal (node:internal/abort_controller:292:10)
    at AbortController.abort (node:internal/abort_controller:323:5)
    at AbortSignal.onAbort (file:///home/trout/work/ipfs-file-pin-service/node_modules/any-signal/dist/src/index.js:8:20)
    at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:736:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:678:26)
    at abortSignal (node:internal/abort_controller:292:10)
    at Timeout._onTimeout (node:internal/abort_controller:112:7)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7) {
  code: 'ERR_SDP_HANDSHAKE_ABORTED',
  props: {}
}

Steps to reproduce the error:

The error often happens shortly after startup, but it's inconsistent so I don't have a description of how to reliably reproduce it. It seems to depend on the order of connection attempts, which is random in my application.

@christroutner christroutner added the need/triage Needs initial labeling and prioritization label Jan 31, 2024
@achingbrain
Copy link
Member

achingbrain commented Feb 5, 2024

What version of the transport are you using? I ask because there's no string matching 'ERR_SDP_HANDSHAKE_ABORTED' in the codebase currently, but there was this PR that fixed a bug with very similar symptoms to those you are reporting - it went out in @libp2p/[email protected] (which also removed the ERR_SDP_HANDSHAKE_ABORTED CodeError).

The latest version is @libp2p/[email protected], can you please try that?

@achingbrain achingbrain removed the need/triage Needs initial labeling and prioritization label Feb 5, 2024
@christroutner
Copy link
Author

I was using @libp2p/webrtc v3.2.11. I've upgraded to v4.0.17 and everything seems fine so far. I'll reopen this issue if I see the error again.

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

2 participants