question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subprotocol error when creating connection with ws@8.0.0

See original GitHub issue

The 8.0.0 version of ws introduced some breaking changes around protocols. Attempting to create a connection with this version yields the following error.

could not create WAMP transport 'websocket':  SyntaxError: An invalid or duplicated subprotocol was specified
    at initAsClient (C:\Users\BenHanna\source\repos\wamp\node_modules\ws\lib\websocket.js:677:15)
    at new WebSocket (C:\Users\BenHanna\source\repos\wamp\node_modules\ws\lib\websocket.js:80:7)
    at C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\transport\websocket.js:200:22
    at Factory.create (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\transport\websocket.js:288:9)
    at Connection._create_transport (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:112:44)
    at retry (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:249:33)
    at Connection.open (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:383:4)
    at Object.<anonymous> (C:\Users\BenHanna\source\repos\wamp\index.js:65:16)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
could not create any WAMP transport

Rolling back to 7.5.3 makes the issue go away.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
iamcirojacommented, Aug 23, 2021

Hello, everyone! Are there any good news on this issue? 😃

1reaction
DamiTomacommented, May 17, 2022

@oberstet I would suggest to also update the README, as it can be misleading for newbies. Initially I thought it supported up to version 2, we can probably get rid of the comment for Node V4.5.0 (I guess no one has been using that for years).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lots of Subprotocol errors · Issue #6 · INFURA/devp2p-network
I'm seeing a lot of peers getting removed because of a subprotocol error. ... and it looks like the library is doing that...
Read more >
LittleWeeb_Installer_v0.4.0.302.exe - Hybrid Analysis
Guest System: Windows 7 64 bit, Professional, 6.1 (build 7601), Service Pack 1 ... Creates a writable file in a temporary directory.
Read more >
PhD_Thesis_Matteo_Pompili.pdf - TU Delft Research Portal
The first result of this thesis is building a three-node entanglement-based quantum network. We demonstrated distribution of Greenberger-Horne-Zeilinger ...
Read more >
Download Patch File
webkitGetAsEntry()}if(!entry){console.error("File upload not ... make sure it is exported");return func}function ccall(ident,returnType,argTypes,args ...
Read more >
23rd Pacific-Asia Conference, PAKDD 2019, Macau, China ...
Our model uses recorded failure history to make failure predictions on a ... Algorithm (˜ η , α): η ˜ estimate from Lk-fun...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found