"Transport not open" after upgrade to v4
See original GitHub issueDescribe the bug Yesterday I have upgraded an Angular application which uses socket.io-client to version 4.0.0. The server was also upgraded to 4.0.0. Today our logging recorded multiple “Transport not open” errors on the client side which were never observed before. The (minified) stack trace looks like this:
m.send at line 1:198353 {snip} .onClose()),this}send(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)}onOpen(){this.readyState="open",thi {snip}
c.flush
c.sendPacket
c.write
PVQj.t.Manager._packet
t.Socket.packet
t.Socket.emit
To Reproduce Unable to reproduce so far.
Platform:
- Device: Chrome 89 + Safari 14
- OS: Windows + Mac
Additional context
socket.emit()
is only called when socket.connected
returns true
. But somehow during the emit the Transport not open
is thrown.
I have downgraded the client to 3.1.3 to see if the error persists and will update this issue tomorrow with the results.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Transport polling error with Socket.Io - Stack Overflow
The simplest way to fix this is to change the line of code in the client from this: var socket = io. connect('http://localhost');...
Read more >KB5017811—Manage Transport Layer Security (TLS) 1.0 and ...
The message states that the site uses an outdated or unsafe TLS protocol. To address this, you can update the TLS protocol to...
Read more >Solved: Hive JDBC : Could not open client transport with J...
Solved: Hello, I tried to connect to hive using jdbc but i had the following error: Error: Could not open - 101772.
Read more >How to troubleshoot long running Transport request - SAP Blogs
How to troubleshoot long running Transport request:- · Go to SE38, execute the report RSTPTEST. · In STMS_IMPORT transaction -> in menu click...
Read more >External Mail Flow Not Working After Exchange Server Upgrade
To resolve the issue, restart the Microsoft Exchange Frontend Transport service. exchange-2013-sp1-front-end-transport-02. After the service has ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having a similar issue to @RonnieRocket147, ours seems to be triggered by a user clicking on tel protocol links. The user in question also has relatively poor internet, but it only occurs as an actual error when tel protocol links are clicked.
I could indeed reproduce, thanks.
This seems to be linked to this commit, included in
engine.io-client@4.1.2
andsocket.io-client@3.1.2
.