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

Crash due to ERR_UNHANDLED_REJECTION #172

Open
runningman84 opened this issue Apr 20, 2023 · 2 comments
Open

Crash due to ERR_UNHANDLED_REJECTION #172

runningman84 opened this issue Apr 20, 2023 · 2 comments

Comments

@runningman84
Copy link
Contributor

exernal-auth-server connected to github stopped working today, the application is crashing with this error:

(node:18) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
{"date":"Thu Apr 20 2023 09:23:14 GMT+0000 (Coordinated Universal Time)","error":{"code":"ERR_UNHANDLED_REJECTION"},"exception":true,"level":"error","message":"uncaughtException: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".\nUnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".","os":{"loadavg":[6.51,6.22,6.32],"uptime":6570.67},"process":{"argv":["/usr/local/bin/node","/home/eas/app/src/server.js"],"cwd":"/home/eas/app","execPath":"/usr/local/bin/node","gid":1001,"memoryUsage":{"arrayBuffers":212450,"external":1956736,"heapTotal":35938304,"heapUsed":33362328,"rss":84918272},"pid":18,"uid":1001,"version":"v16.17.0"},"service":"external-auth-server","stack":"UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".","timestamp":"2023-04-20T09:23:14.922Z","trace":[]}
{"level":"error","message":"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}","service":"external-auth-server","timestamp":"2023-04-20T09:23:14.923Z"}
{"date":"Thu Apr 20 2023 09:23:17 GMT+0000 (Coordinated Universal Time)","error":{"code":"ERR_UNHANDLED_REJECTION"},"exception":true,"level":"error","message":"uncaughtException: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".\nUnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".","os":{"loadavg":[6.31,6.19,6.31],"uptime":6573.25},"process":{"argv":["/usr/local/bin/node","/home/eas/app/src/server.js"],"cwd":"/home/eas/app","execPath":"/usr/local/bin/node","gid":1001,"memoryUsage":{"arrayBuffers":215831,"external":2002325,"heapTotal":36462592,"heapUsed":33497856,"rss":85368832},"pid":18,"uid":1001,"version":"v16.17.0"},"service":"external-auth-server","stack":"UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason \"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}\".","timestamp":"2023-04-20T09:23:17.501Z","trace":[]}
{"level":"error","message":"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\"}","service":"external-auth-server","timestamp":"2023-04-20T09:23:17.522Z"}
npm notice 
npm notice New major version of npm available! 8.15.0 -> 9.6.5
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.5>
npm notice Run `npm install -g npm@9.6.5` to update!
npm notice 
Stream closed EOF for kube-system/external-auth-server-7cfc89c7cc-87szc (external-auth-server)

@travisghansen
Copy link
Owner

Looks like I better catch that and more gracefully handle the failure. As for the bad credentials do you think it has something to do with the mfa changes by github?

@runningman84
Copy link
Contributor Author

It worked again after I cleared the browser cache. Yes I am using github MFA but I don't know if this was causing the problem. In any case we should not let external auth crash if a single user has any problem.

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

2 participants