Skip to content

Undici v8.x breaks Node.js native WebSocket over WSS (HTTP/2) #4989

@cristianmadularu

Description

@cristianmadularu

Bug Description

I have originally reported the issue in the context of another issue that had been closed libp2p/js-libp2p#3438 but I was asked to open a new issue so here it is :).
In my case, I found the issue when my libp2p application stopped being able to connect to peers using WebSocket Secure and also opened the issue there (not originally knowing where the problem was coming from): libp2p/js-libp2p#3438

Undici v8.x breaks Node.js native WebSocket over WSS (HTTP/2)

Reproducible By

I have created a basic demo project which reproduces the issue. Please see here:
https://github.com/cristianmadularu/Undici-libp2p-websocket
Please see its readme since it contains all the relevant information.

Environment

Windows 11, 64bit and also Debian Slim (node:24-slim)

Additional context

The problem started with the 8.x release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions