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

Getting error when running from sudo and manually setting secret. #1

Open
AustinSaintAubin opened this issue Sep 14, 2017 · 0 comments

Comments

@AustinSaintAubin
Copy link

Getting error when running from sudo and manually setting secret.

root@cncjs-pi:~# node /home/pi/cncjs-pendant-boilerplate-master/bin/cncjs-pendant-boilerplate -s 'HSujksldfxxxxxxxSKJDF' --port /dev/ttyUSB0

throw typeError(MSG_INVALID_SECRET);
TypeError: secret must be a string or buffer
at typeError (/home/pi/cncjs-pendant-boilerplate-master/node_modules/jwa/index.js:16:10)
at Object.sign (/home/pi/cncjs-pendant-boilerplate-master/node_modules/jwa/index.js:32:13)
at Object.jwsSign [as sign] (/home/pi/cncjs-pendant-boilerplate-master/node_modules/jws/lib/sign-stream.js:23:24)
at Object.module.exports [as sign] (/home/pi/cncjs-pendant-boilerplate-master/node_modules/jsonwebtoken/sign.js:154:16)
at generateAccessToken (/home/pi/cncjs-pendant-boilerplate-master/index.js:10:23)
at module.exports (/home/pi/cncjs-pendant-boilerplate-master/index.js:42:19)
at createServer (/home/pi/cncjs-pendant-boilerplate-master/bin/cncjs-pendant-boilerplate:62:5)
at Object. (/home/pi/cncjs-pendant-boilerplate-master/bin/cncjs-pendant-boilerplate:156:5)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)

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