madmax3365 / madmax3365/node-red-node-discord
Forking node-discord message causes clone crash
Open
@madmax3365 is already working on this.
Since Dec 17, 2019.
Future Improvement
good first issue
V3
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
What are the steps to reproduce?
with node-red-node-discord@2.1.0
What happens?
Apparently taking the output of this discord message handler and forking it into two debugs gives this error. If I kill one of the links, I don't get the error.
11 Dec 05:30:57 - [red] Uncaught Exception:
11 Dec 05:30:57 - TypeError: Cannot assign to read only property 'writeQueueSize' of object '#<TCP>'
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:16)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
at _clone (/usr/src/node-red/node_modules/clone/clone.js:162:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@1.0.3 start: `node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
What do you expect to happen?
I expect the message to be cloned without issue, or at least a non-fatal one.
Please tell us about your environment:
- Node-RED version: 1.0.3
- Node.js version: 10
- npm version: 6.11.3
- Platform/OS: docker nodered/node-red:1.0.3-10
- Browser: Chrome
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.