microsoft / microsoft/MHA

EWS callback failed

Open
#1,460 3 comments 1 reaction 1 assignee View on GitHub

@stephenegriffin is already working on this.

Since May 8, 2025.

Dominant language
TypeScript
Stars
385
Forks
66
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Diagnostics

User Agent = Mozilla/5.0 (Linux; Android 14; SM-G998B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/134.0.6998.39 Mobile Safari/537.36
Requirement set = 1.5
ui = new-mobile
Last Update = Fri, 14 Mar 2025 21:44:02 GMT
mhaVersion = e6ed5b82
contentLanguage = en-DK
displayLanguage = en-DK
hostname = OutlookAndroid
hostVersion = 4.2509.0.0
permissionLevel = 3
canUseAPI = false
canUseRest = true
sufficientPermission = true
origin = https://mha.azurewebsites.net
path = /Pages/uitoggle.html
API used = Not set
itemId = true
itemType = message
itemClass = IPM.Note
noAPIreason = requirements too low
callbackTokenFailure = {"status":"failed","error":{"name":"Internal Error","message":"Internal Error","code":5001}}
ERROR: API failed, trying REST
ERROR: No access token?
ERROR: REST failed, trying EWS
ERROR: EWS callback failed : Failed to retrieve headers.
l.callbackEws (webpack://mha/src/Scripts/ui/getHeaders/GetHeadersEWS.ts:90:22)
a (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:191082)
e (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:113949)
a.agaveHostCallback (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:111761)
Object.g [as agaveHostCallback] (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:110632)
a.ReceiveMessage (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:117159)
agaveHostCallback (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:117536)
ERROR: Unable to obtain callback token.
Fallback to EWS.
{
"status": "failed",
"error": {
"name": "Internal Error",
"message": "Internal Error",
"code": 5001
}
} : Internal Error
_generateError (webpack://mha/node_modules/stacktrace-js/stacktrace.js:28:18)
get (webpack://mha/node_modules/stacktrace-js/stacktrace.js:77:22)
Errors.isError (webpack://mha/src/Scripts/stacks.ts:28:26)
handler (webpack://mha/src/Scripts/stacks.ts:45:13)
parse (webpack://mha/src/Scripts/Errors.ts:81:14)
a (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:191082)
e (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:113949)
ERROR: Async Response
{
"status": "succeeded"
}
_generateError (webpack://mha/node_modules/stacktrace-js/stacktrace.js:28:18)
get (webpack://mha/node_modules/stacktrace-js/stacktrace.js:77:22)
Errors.isError (webpack://mha/src/Scripts/stacks.ts:28:26)
handler (webpack://mha/src/Scripts/stacks.ts:45:13)
parse (webpack://mha/src/Scripts/Errors.ts:81:14)
log (webpack://mha/src/Scripts/ui/getHeaders/GetHeadersEWS.ts:95:23)
a (https://appsforoffice.microsoft.com/lib/1/hosted/outlook-android-16.00.js:20:191082)
OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.