-
Notifications
You must be signed in to change notification settings - Fork 111
Description
Love this tutorial and could reproduce it fine up to and including the "sign out" bit. After doing the code changes for "refreshing the access token" and "using the mail API", I can still sign in and out, but the app fails when I try to display the inbox. When I click on the Inbox tab, I get the following error in the debug section: "{
"code": "InvalidAuthenticationToken",
"message": "CompactToken parsing failed with error code: 80049217",
"innerError": {
"request-id": "2644e612-c299-4204-bf6c-3861ee3f741e",
"date": "2019-01-31T15:44:57"
}
}"
Also I get the following error on my server console: "Error: C:\Dev\minutes\mstut\node-tutorial\views\error.hbs: Can't set headers after they are sent.
at validateHeader (_http_outgoing.js:491:11)
at ServerResponse.setHeader (_http_outgoing.js:498:3)
at ServerResponse.header (C:\Dev\minutes\mstut\node-tutorial\node_modules\express\lib\response.js:767:10)
at ServerResponse.send (C:\Dev\minutes\mstut\node-tutorial\node_modules\express\lib\response.js:170:12)
at done (C:\Dev\minutes\mstut\node-tutorial\node_modules\express\lib\response.js:1004:10)
at C:\Dev\minutes\mstut\node-tutorial\node_modules\hbs\lib\hbs.js:93:9
at Object.done (C:\Dev\minutes\mstut\node-tutorial\node_modules\hbs\lib\async.js:74:20)
at C:\Dev\minutes\mstut\node-tutorial\node_modules\hbs\lib\hbs.js:88:18
at C:\Dev\minutes\mstut\node-tutorial\node_modules\hbs\lib\hbs.js:69:11
at Object.done (C:\Dev\minutes\mstut\node-tutorial\node_modules\hbs\lib\async.js:74:20)"
I am at a loss here. Could I ask for your help?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 53b47c58-f96e-dca0-6ae6-0e22bda41a07
- Version Independent ID: 760e409d-5f01-7bf2-0c8e-a05e75afa711
- Content: How to use Outlook REST APIs in a Node.js app - Outlook Developer
- Content Source: docs/rest/node-tutorial.md
- Product: outlook
- GitHub Login: @jasonjoh
- Microsoft Alias: jasonjoh