Skip to content

InvalidAuthenticationToken: CompactToken parsing failed with error code: 80049217 #508

@JensSteckhan

Description

@JensSteckhan

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.

Metadata

Metadata

Assignees

Labels

Area: restFeedback on REST API/Graph contentType: programming questionHow-to question that should be posted to Stack Overflow

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions