Comments (16)
Could you open the gear icon and click diagnostics, then paste the output here?
My working theory here is that REST or EWS (likely REST) isn't working in your environment.
from mha.
Hi,
Thank you for replying. I apologize about post #18. Everything was working before and no major updates have been applied to our environment. How can I diagnose the REST or EWS?
Outlook for Mac uses EWS and everything seems to be working.
Let me know if you need anything else. Once again, thank you for looking into this.
-
Outlook for Windows Diagnostics
User Agent = Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; rv:11.0) like Gecko
Requirement set = 1.4
hostname = Outlook
hostVersion = 15.0.5007.1000
itemType = message
itemClass = IPM.Note
contentLanguage = en-US
displayLanguage = en-US
touchEnabled = undefined
ERROR: Failed to retrieve headers. -
Outlook for Mac
User Agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko)
Requirement set = 1.5
hostname = Outlook
hostVersion = 16.9 (180116.02)
itemType = message
itemClass = IPM.Note
contentLanguage = en-US
displayLanguage = en-US
touchEnabled = false
ERROR: Unable to obtain callback token. -
IE on Windows 10
User Agent = Mozilla/5.0 ( compatible; MSIE 10.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C;..NET4.0E; InfoPath.3; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
Requirement set = 1.3
hostname = OutlookWebApp
hostVersion = 15.0.1347.3
OWAView = ThreeColumns
itemType = message
itemClass = IPM.Note
contentLanguage =
displayLanguage = en-US
touchEnabled = undefined
ERROR: Failed to retrieve headers. -
Google Chrome on Mac
User Agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
Requirement set = 1.3
hostname = OutlookWebApp
hostVersion = 15.0.1347.3
OWAView = ThreeColumns
itemType = message
itemClass = IPM.Note
contentLanguage =
displayLanguage = en-US
touchEnabled = undefined
ERROR: Failed to retrieve headers.
from mha.
I think I need to put some more breadcrumbs in my error code. But ultimately, I think this is gonna be a server issue. Fiddler will show the traffic of requests. As I note in #18 (comment), you should see one of them failing.
from mha.
Hi Stephen,
I am scratching my head on this one. I can't figure it out. I need additional guidance. I have installed other apps and these work without no issues.
Using IE (F12) and Fiddler. I see the traffic to this website https://mha.azurewebsites.net/ and not https://outlook.office365.com.
from mha.
Iām on vacation for a week, but when I get back Iād love to look at the fiddler output.
from mha.
Updated error logging should get us an error message+stack now
from mha.
I've also been getting this -- immediate error is "Failed to Retrieve Headers"
Diags:
User Agent = Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; wbx 1.0.0; rv:11.0) like Gecko
Requirement set = 1.4
hostname = Outlook
hostVersion = 16.0.4654.1000
itemType = message
itemClass = IPM.Note
contentLanguage = en-US
displayLanguage = en-US
touchEnabled = undefined
ERROR: Failed to retrieve headers.
Sys.ArgumentNullException: Value cannot be null.
Parameter name: callback
r.CommonParameters.parse()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.01.js:17:205756,u.DDA.OutlookAppOm.prototype.makeEwsRequestAsync()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.01.js:17:132920,sendHeadersRequestEWS()@https://mha.azurewebsites.net/Scripts/GetHeadersEWS.js:25:9,sendHeadersRequest()@https://mha.azurewebsites.net/Scripts/GetHeaders.js:13:13,Anonymous function()@https://mha.azurewebsites.net/Scripts/Default.js:15:5,j()@https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js:2:26668,k.fireWith()@https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js:2:27425,ready()@https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js:2:29281,I()@https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js:2:29451
from mha.
On the hunch that namespaces are an issue, I renamed my callback - if this fixes this issue I need to do real work to clean up namespaces.
from mha.
Hi Stephen,
Thank you for checking this. The new diagnostic displays the same error as Skipdog77.
Not sure what is causing the error. Last week, I used Fiddler and IE dev tools and noticed some weird messages right after I click the MHA button. I hope these help, let me know if I can do something to help more.
**** The results below were obtained using Fiddler and the IE developer tools **
<EDIT: @stephenegriffin removed a list of string constants not relevant to this issue>
from mha.
Dunno if I've fixed this one, but I think the error should change. Please speak up if you're still getting "Sys.ArgumentNullException: Value cannot be null. Parameter name: callback" or if the error has morphed. Also let me know if that was your error and now it works. Thanks!
from mha.
I've got a repro of this now...
from mha.
Ok - so here's the bug:
Outlook 2016 MSI uses an older version of outlook-win32-16.00.js than Outlook 2016 C2R. In the older version of this file, there is some code to check that a callback function is indeed a function. This code looks like this:
if(Function.isInstanceOfType(args[0]))
callback = args[0];
However, this returns false for our callback function. Over in C2R, this same check now looks like this:
if($h.CommonParameters._argIsFunction$p(args[0]))
callback = args[0];
Where argIsFunction is defined like so:
$h.CommonParameters._argIsFunction$p = function(arg)
{
return typeof arg === "function"
};
So in 2016 MSI, makeEwsRequestAsync thinks we didn't pass a callback, but in 2016 C2R, it correctly concludes we did.
Action plan: Report this back to Office dev, and also continue to hack to see if I can force something past the isInstanceOfType check.
from mha.
Didn't mean to close this without verification - anyone still getting Failed to retrieve headers? If you were getting it and it's now fixed, please report that. If you're still getting it, please report updated diagnostics output, including the stack. Thanks!
from mha.
Hi Stephen,
Sorry, still partially broken. Here is my feedback. Thank you for working on this.
Outlook for Windows
- Both Classic and New work great.
Still broken on these browsers and clients. Neither Classic or New view worked:
- IE Firefox and Google Chrome Mac and Windows.
- Broken for Outlook for Mac
Attached diagnostics output below.
----- ------- --Firefox on Windows
User Agent = Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Requirement set = 1.3
hostname = OutlookWebApp
hostVersion = 15.0.1347.5
OWAView = ThreeColumns
itemType = message
itemClass = IPM.Note
contentLanguage =
displayLanguage = en-US
touchEnabled = undefined
ERROR: Cannot parse given Error object
parse@https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/2.0.0/stacktrace-with-promises-and-json-polyfills.min.js:1:1299
fromError/<@https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/2.0.0/stacktrace-with-promises-and-json-polyfills.min.js:2:14676
fromError@https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/2.0.0/stacktrace-with-promises-and-json-polyfills.min.js:2:14644
LogError@https://mha.azurewebsites.net/Scripts/uiToggle.js:117:9
ShowError@https://mha.azurewebsites.net/Scripts/uiToggle.js:93:5
callbackEWS@https://mha.azurewebsites.net/Scripts/GetHeadersEWS.js:60:9
sendHeadersRequestEWS/<@https://mha.azurewebsites.net/Scripts/GetHeadersEWS.js:18:13
makeEwsRequestAsync/i.onreadystatechange@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlookwebapp-15.01.js:17:5497
$2P_1@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlookwebapp-15.01.js:17:55509
$m_1/<@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlookwebapp-15.01.js:17:59912
-------- Outlook for Mac
User Agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko)
Requirement set = 1.5
hostname = Outlook
hostVersion = 16.9 (180116.02)
itemType = message
itemClass = IPM.Note
contentLanguage = en-US
displayLanguage = en-US
touchEnabled = false
ERROR: Unable to obtain callback token.
[object Object]
ShowError()@https://mha.azurewebsites.net/Scripts/uiToggle.js:93:13
{anonymous}()@https://mha.azurewebsites.net/Scripts/GetHeadersRest.js:21:22
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:165814
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:158350
agaveResponseCallback()@user-script:9:1:9847
agaveHostCallback()@user-script:9:1:5046
agaveHostCallback()@user-script:9:1:2578
{anonymous}()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:60
global code()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:135
ERROR: Unable to obtain callback token.
[object Object]
ShowError()@https://mha.azurewebsites.net/Scripts/uiToggle.js:95:23
{anonymous}()@https://mha.azurewebsites.net/Scripts/GetHeadersRest.js:21:22
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:165814
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:158350
agaveResponseCallback()@user-script:9:1:9847
agaveHostCallback()@user-script:9:1:5046
agaveHostCallback()@user-script:9:1:2578
{anonymous}()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:60
global code()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:135
User Agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko)
Requirement set = 1.5
hostname = Outlook
hostVersion = 16.9 (180116.02)
itemType = message
itemClass = IPM.Note
contentLanguage = en-US
displayLanguage = en-US
touchEnabled = false
ERROR: Unable to obtain callback token.
[object Object]
ShowError()@https://mha.azurewebsites.net/Scripts/uiToggle.js:93:13
{anonymous}()@https://mha.azurewebsites.net/Scripts/GetHeadersRest.js:21:22
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:165814
{anonymous}()@https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-mac-16.00.js:9:158350
agaveResponseCallback()@user-script:13:1:9847
agaveHostCallback()@user-script:13:1:5046
agaveHostCallback()@user-script:13:1:2578
{anonymous}()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:60
global code()@https://mha.azurewebsites.net/pages/default.html?_host_Info=Outlook$Mac$16.02$en-US:1:13
from mha.
@luisjmoreno It looks like neither of those errors/stacks match the "Failed to retrieve headers" issue, so I'm gonna declare this one as fixed. I'll open new bugs to track these issues.
from mha.
This was caused by issuing our requests from an iFrame. Fixed by #50 which moved the calls back to the main frame
from mha.
Related Issues (20)
- email hop times in Outlook on IOS devices HOT 2
- Freezing browser
- Received header parsing not RFC compliant
- EWS Callback Failed
- dkim check doesn't show failed
- Convert remaining pages
- Work out versioning
- Build to the right path HOT 1
- Work out AI key
- Make sure sln works with VS 2022
- Website loading failed HOT 1
- Convert fabric to fluent HOT 1
- Fails to build on linux-based systems HOT 1
- Move off moment
- size limits HOT 1
- mail format
- Header area doesn't resize in response to upper text field resize HOT 1
- Forefront Anti-Spam Header
- Quarantine Email
- Cannot parse given error object -
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mha.