question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnhandledPromiseRejectionWarning in Office Code

See original GitHub issue

Expected behavior

I expect to run the yo generator, and then ran configure-sso. I have done this before and it has worked, but now after I get the error below.

Current behavior

I ran the yo generator, and then ran configure-sso. I have done this before successfully but now I see the following error, and the code builds, but will not start via npm start.

Login was successful! (node:19636) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘readManifestFile’ of undefined at Command.<anonymous> (G:\My Documents\GitHub\MSKSpamSubmitter\node_modules\office-addin-sso\lib\commands.js:47:84) at Generator.next (<anonymous>) at fulfilled (G:\My Documents\GitHub\MSKSpamSubmitter\node_modules\office-addin-sso\lib\commands.js:6:58) at processTicksAndRejections (internal/process/task_queues.js:95:5) (Use node --trace-warnings ... to show where the warning was created) (node:19636) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:19636) [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.

Steps to Reproduce

Followed these instructions: https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/quickstarts/sso-quickstart.md

  • Selected Outlook for SSO and Typescript.
  • Ran npm run configure-sso

Context

  • Win 10 (with admin)
  • Node LTS 14.17.4
  • TS 4.2.4
  • VS Code

Failure Logs

  • See error output above

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
millerdscommented, Aug 3, 2021

That’s a different issue (being fixed). Run “npm install” and then setup sso.

0reactions
millerdscommented, Aug 6, 2021

The was a breaking change in a dependent package. An update has been pushed (still working on the JS version of this though)

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnhandledPromiseRejectionWar...
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not...
Read more >
How to fix "UnhandledPromiseRejectionWarning" for my code
I think the best way to approach this is to remember you're creating a file stream with the createWriteStream function.
Read more >
UnhandledPromiseRejectionWar...
A solution for MongoParseError (UnhandledPromiseRejectionWarning: MongoParseError: URI does not have hostname, domain name and tld... ) (node: ...
Read more >
Node 15 Release - This Dot Labs
In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. throw (15+).
Read more >
Unhandled Promise Rejection Warning - Codecademy Forums
The unhandledRejection event is emitted whenever a promise rejection is not handled. “Rejection” is the canonical term for a promise reporting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found