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

UnhandledPromiseRejectionWarning #2

Open
stephenfeather opened this issue May 21, 2019 · 2 comments
Open

UnhandledPromiseRejectionWarning #2

stephenfeather opened this issue May 21, 2019 · 2 comments

Comments

@stephenfeather
Copy link
Contributor

May want to make sure that all promises are caught.

@jburnett
Copy link

I had the same problem today.
(node:1772341) UnhandledPromiseRejectionWarning: StatusCodeError: 401 - undefined at new StatusCodeError (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/home/jb/src/github.com/pouriaa/bitbucket-to-github/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) (node:1772341) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 1) (node:1772341) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@pouriaa
Copy link
Owner

pouriaa commented Nov 23, 2020

@jburnett make sure that you have the right tokens to auth into your Github and Bitbucket accounts

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

3 participants