-
Notifications
You must be signed in to change notification settings - Fork 122
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
Error: write after end / Uncaught Exception #94
Comments
A lot has changed to do with reconnection since 0.3.4 - have you tried 0.3.10 to see if it solves this problem for you? |
Thanks for your reply.
modified code:
} |
OK hopefully it's solved in the latest version. Is anyone else seeing the same issue? It has always seemed strange that node would send data from a closed connection anyway. |
I hope it goes away an also another Exception which, unfortunately, does not even show a qualified stack trace... - so I don't have a clue where to "catch" this one. 2020.01.16_17:55:56.648_16 Jan 17:55:56 - [red] Uncaught Exception: |
That is strange, it's hard to even know if that's related to nodeS7. |
It's really strange - I am trying to isolate it (only connecting to S7), now testing against 0.3.10... |
Did you solve your problem using the 0.3.10? |
No, that issue still exists. It appears extremely randomly, crashing the entire process, making this plugin completely useless for production. |
Sorry for my late response. |
Hi,
I have seen that this issue has been discussed already, however in my case it seems to relate to network issues: The connection seems to get interrupted from time to time. This Uncaught Exception/Crash happens about every once in a week, I am reading some 20 values every second.
I am on nodeS7 release 0.3.4, on Windows 10.
I am using this in node-red (my own node).
Is there a chance to "catch" the error and fire an event or callback the read/write function with an error (other than true, so that this case could be handled accordingly)?
Here is the log:
2020.01.16_17:16:48.444_[2201920,473402219 IPC0725 S2] ISO-on-TCP Connection Confirm Packet Received
2020.01.16_17:16:48.710_16 Jan 17:16:48 - [red] Uncaught Exception:
2020.01.16_17:16:49.119_16 Jan 17:16:49 - Error: write after end
2020.01.16_17:16:49.119_ at writeAfterEnd (stream_writable.js:236:12)
2020.01.16_17:16:49.120 at Socket.Writable.write (stream_writable.js:287:5)
2020.01.16_17:16:49.121 at Socket.write (net.js:707:40)
2020.01.16_17:16:49.151_ at NodeS7.onISOConnectReply (C:\node_modules\node-red\node_modules\tlabs-nodes\node_modules\nodes7\nodeS7.js:341:17)
2020.01.16_17:16:49.152_ at Socket. (C:\node_modules\node-red\node_modules\tlabs-nodes\node_modules\nodes7\nodeS7.js:291:26)
2020.01.16_17:16:49.153_ at emitOne (events.js:116:13)
2020.01.16_17:16:49.154_ at Socket.emit (events.js:211:7)
2020.01.16_17:16:49.155_ at addChunk (stream_readable.js:263:12)
2020.01.16_17:16:49.155 at readableAddChunk (stream_readable.js:250:11)
2020.01.16_17:16:49.156 at Socket.Readable.push (stream_readable.js:208:10)
2020.01.16_17:16:49.157 at TCP.onread (net.js:597:20)
The text was updated successfully, but these errors were encountered: