TypeError: Cannot assign to read only property 'writeQueueSize' of object '#<TCP>' #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I used this node on node-red and it raised excpetions like below.
22 Oct 16:38:42 - [red] Uncaught Exception:
22 Oct 16:38:42 - TypeError: Cannot assign to read only property 'writeQueueSize' of object '#'
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:16)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at _clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:162:18)
at clone (D:\work\source\Nodejs\node-red\node_modules\clone\clone.js:202:10)
at Object.cloneMessage (D:\work\source\Nodejs\node-red\node_modules@node-red\util\lib\util.js:90:13)
at amqpReceiverNode.Node.send (D:\work\source\Nodejs\node-red\node_modules@node-red\runtime\lib\nodes\Node.js:409:61)
at Receiver. (D:\work\source\Nodejs\node-red\node_modules\node-red-contrib-rhea\rhea\rhea.js:262:26)
at Receiver.emit (events.js:198:13)
at Receiver.link.dispatch (D:\work\source\Nodejs\node-red\node_modules\node-red-contrib-rhea\node_modules\rhea\lib\link.js:59:37)
at Incoming.on_transfer (D:\work\source\Nodejs\node-red\node_modules\node-red-contrib-rhea\node_modules\rhea\lib\session.js:357:22)
at Session.on_transfer (D:\work\source\Nodejs\node-red\node_modules\node-red-contrib-rhea\node_modules\rhea\lib\session.js:728:19)
at Connection.(anonymous function) [as on_transfer] (D:\work\source\Nodejs\node-red\node_modules\node-red-contrib-rhea\node_modules\rhea\lib\connection.js:689:30)
I also opened an issue about it.
Now I changed the the code and now it works. Hope this code helps others. Thanks.