Skip to content
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

TypeError: Cannot assign to read only property 'writeQueueSize' of object '#<TCP>' #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GTerryLiu
Copy link

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.

@pratham2003
Copy link

Were you by any chance connecting the source node to two different nodes?

Ref: guidone/node-red-contrib-chatbot-discord#4

@GTerryLiu
Copy link
Author

I connected to both AMQP node and MQTT node. Messages from AMQP node were transformed and transferred to MQTT node. I think it is a common use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants