client reset observe failed
See original GitHub issueIssue Description
in client side, i want to send RST packet to server.
req.on('response', function(res) {
console.log("---------------------response---------------------");
console.log(res.headers);
var rcvCount = 5;
res.on('data', function(data) {
console.log(data);
rcvCount--
if(rcvCount == 0){
//it will throw new Error: Empty messages must be empty
req.reset();
}
});
})
req.end()
when i call req.reset(), it will throw Empty messages must be empty error
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
How to handle client reset error in SwiftUI Realm app #7881
Getting a client reset error in our app, need to remove the local realm and re-open anew automatically for the user when the...
Read more >How to simulate client reset request? - Atlas Device Sync
Our documentation shows an example on how to handle this request while the app is running and what to do if the client...
Read more >DOTW: TCP Resets from Client and Server aka TCP-RST ...
A TCP RST (reset) is an immediate close of a TCP connection. This allows for the resources that were allocated for the previous...
Read more >TCP/IP connectivity issues troubleshooting - Windows Client
TCP reset is an abrupt closure of the session; it causes the resources allocated to the connection to be immediately released and all...
Read more >Spring web flux WebClient : Connection rest by peers,#block ...
Error has been observed at the following site - Stack Overflow ...
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 Free
Top 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
I have almost the same problem. When I am using “res.reset()” at server-end.
It will cause client-end throwing “Empty messages must be empty error”. Using wireshark to capture and I find server-end sending NON msg with ‘5.00 Internal Server Error’ and body ‘Empty messages must be empty’ after send RST msg.
NON msg has the same token with the NON request which client-end sent. I think this cause client-end throws error. I don’t know why coap source code deal with reset on this way, maybe it’s a bug? (reference to ‘fastseries’ lib)
@robertbbb @lucarv Could you give a bit more context under which conditions the error occured? (Sorry for the late follow-up question.)