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

mm.js crashes with TypeError Cannot use 'in' operator to search for 'status' in null #48

Open
darknicht66 opened this issue Feb 14, 2022 · 0 comments

Comments

@darknicht66
Copy link

mm.js v4.4 will occasionally crash with the following error message...

Feb 14 00:13:09 xps8300 mm.js[737]: /home/user/gitrepo/meta-miner/mm.js:652
Feb 14 00:13:09 xps8300 mm.js[737]:         if ("result" in grin_json && "status" in grin_json.result && grin_json.result.status === "OK") {
Feb 14 00:13:09 xps8300 mm.js[737]:                                               ^
Feb 14 00:13:09 xps8300 mm.js[737]: TypeError: Cannot use 'in' operator to search for 'status' in null
Feb 14 00:13:09 xps8300 mm.js[737]:     at pool_new_msg (/home/user/gitrepo/meta-miner/mm.js:652:47)
Feb 14 00:13:09 xps8300 mm.js[737]:     at Socket.<anonymous> (/home/user/gitrepo/meta-miner/mm.js:534:11)
Feb 14 00:13:09 xps8300 mm.js[737]:     at Socket.emit (events.js:198:13)
Feb 14 00:13:09 xps8300 mm.js[737]:     at addChunk (_stream_readable.js:288:12)
Feb 14 00:13:09 xps8300 mm.js[737]:     at readableAddChunk (_stream_readable.js:269:11)
Feb 14 00:13:09 xps8300 mm.js[737]:     at Socket.Readable.push (_stream_readable.js:224:10)
Feb 14 00:13:09 xps8300 mm.js[737]:     at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

It seems to happen once every day or two. I haven't determined if it only happens on certain algorithms. In this most recent case, it was running c29b

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

No branches or pull requests

1 participant