Pendant authorization issue
Description
If an user has been defined under Settings -> Account, the pendants will not be able anymore to connect to the socket (including cncjs-pendant-boilerplate). The error reported is:
2020-04-02T17:01:45.435Z - warn service:cncengine Error: Unauthorized user: user.id=, user.name=cncjs-pendant at /usr/lib/node_modules/cncjs/dist/cncjs/server/index.js:3522:14 at new Promise (<anonymous>) at validateUser (/usr/lib/node_modules/cncjs/dist/cncjs/server/index.js:3497:10) at _callee$ (/usr/lib/node_modules/cncjs/dist/cncjs/server/index.js:18183:72) at tryCatch (/usr/lib/node_modules/cncjs/node_modules/regenerator-runtime/runtime.js:45:40) at Generator.invoke [as _invoke] (/usr/lib/node_modules/cncjs/node_modules/regenerator-runtime/runtime.js:274:22) at Generator.prototype.(anonymous function) [as next] (/usr/lib/node_modules/cncjs/node_modules/regenerator-runtime/runtime.js:97:21) at CNCEngine_asyncGeneratorStep (/usr/lib/node_modules/cncjs/dist/cncjs/server/index.js:17990:113) at _next (/usr/lib/node_modules/cncjs/dist/cncjs/server/index.js:17992:203) at process._tickCallback (internal/process/next_tick.js:68:7)
Do you know how I can fix it?
Thanks in advance, Salvo
Versions
- CNCjs: 1.9.22
- Node.js: 10.19.0
- NPM: 6.14.4
How Do You Install CNCjs?
- [x] NPM
- [ ] Download the CNCjs Desktop Application
CNC Controller
- [x] Grbl
- [ ] Smoothieware
- [ ] TinyG/g2core
Hardware
- [x] Raspberry Pi
- [ ] Desktop or Laptop
- [ ] Mobile Device
Operating System
- [x] Not Applicable
- [ ] Windows
- [ ] Mac
- [ ] Linux