Open h0ckeysk8er opened 7 years ago
Try installing 4.0.0-beta2. That fixed it for me. See related issues #580 and #599.
Yes, installing the 4.0.0-beta2 fixed it for me too. I was seeing multiple 401 unauthorized errors and my calendars were going into R/O mode. The characteristics of the problem seemed to be some sort of processing issue with the password manager in Thunderbird, checking for Kerberos and saving passwords. I have four different Office 365 e-mail addresses I need to setup, each with a calendar so I can see the integrated schedule.
When ewscalendar would connect for 1st time, it would try the EWS URL without a password in case it was using Kerberos, it would get a 401 HTTP error, but never fetch a password from password manager nor prompt the user for a password. After that everything else failed to authenticate and you couldn't create the calendar. You can see this problem by looking at your stored passwords in thunderbird, options, security and you will see no passwords for EWS or sometimes cross set passwords for different accounts. If you have two Office 365 accounts, you might only find one EWS entry for the Office 365 EWS URL instead of the two your should find or you might see the passwords mixed up.
kwagner001 -- while you are at it, I suggest you move to the latest version, 4.0.0-beta4, from a fork of this project that is actually maintained: https://github.com/ExchangeCalendar/exchangecalendar/releases/tag/v4.0.0-beta4
If you come across any problems, that fork actually has people actively working to fix them.
1st-setup:2017-5-2 10:30:0.663:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend 1st-setup:2017-5-2 10:30:0.664:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend :loadend, readyState:4, status:401 1st-setup:2017-5-2 10:30:0.665:af1de78b-0764-449a-9e13-f7fb859553bb: : ExchangeRequest.loadend : 1st-setup:2017-5-2 10:31:24.314:mivExchangeAuthPrompt2: getPassword: A realm was specified:Exchange Web Service (_getPassword in mivExchangeAuthPrompt2.js:122) 1st-setup:2017-5-2 10:31:24.315:mivExchangeAuthPrompt2: getPassword: There is no password in the passwordCache[xxx@xxxx.xxxxxx.net|https://outlook.office365.com/ews/exchange.asmx|Exchange Web Service] (_getPassword in mivExchangeAuthPrompt2.js:140) 1st-setup:2017-5-2 10:31:24.317:mivExchangeAuthPrompt2: getPassword: password(1)=undefined (_getPassword in mivExchangeAuthPrompt2.js:143) 1st-setup:2017-5-2 10:31:24.331:mivExchangeAuthPrompt2: getPassword: There is no password in the cache. Going to see if there is one in the passwordManager. (_getPassword in mivExchangeAuthPrompt2.js:151) 1st-setup:2017-5-2 10:31:24.333:mivExchangeAuthPrompt2: passwordManagerGet: username=xxx@xxxx.xxxxxx.net, aURL=https://outlook.office365.com/ews/exchange.asmx, aRealm=Exchange Web Service (_passwordManagerGet in mivExchangeAuthPrompt2.js:621) 1st-setup:2017-5-2 10:31:24.336:mivExchangeAuthPrompt2: getPassword: There is no password stored in the passwordManager. (_getPassword in mivExchangeAuthPrompt2.js:159) 1st-setup:2017-5-2 10:31:24.337:mivExchangeAuthPrompt2: getPassword: password(2)=undefined (_getPassword in mivExchangeAuthPrompt2.js:163) 1st-setup:2017-5-2 10:31:24.339:mivExchangeAuthPrompt2: getPassword: First request for a password. Not going to ask user for it because we want to see if we need a password. For Kerberos for example we do not need a password. (_getPassword in mivExchangeAuthPrompt2.js:205) 1st-setup:2017-5-2 10:31:24.341:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : 1 ExchangeRequest.sendRequest : user=xxx@xxxx.xxxxxx.net, url=https://outlook.office365.com/ews/exchange.asmx 1st-setup:2017-5-2 10:31:24.343:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.345:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.346:c7dfe223-ef68-4ff0-aed6-1694f170b464: ecnsIAuthPrompt2.getInterface: Ci.nsILoadContext 1st-setup:2017-5-2 10:31:24.347:c55ac8a6-6ce2-419f-bdaa-0716cd670328: : sendRequest Sending: <?xml version="1.0" encoding="utf-8"?>