Ericsson / exchangecalendar

Exchange 2007/2010/2013 Calendar, Tasks, Contacts and GAL Provider.
GNU General Public License v3.0
925 stars 112 forks source link

Thunderbird 52.1.1 and EWS 3.9.0 : Client Error 401 #595

Open LordSnyder opened 7 years ago

LordSnyder commented 7 years ago

Dear developers and supports,

first, I want to thank you for this nice plugin which supported me for the last three years. But since three days, I have a problem with synchronising my server: Here, I cannot connect to an Exchange 2010 server anymore since Thunderbird was updated. The server setup was not changed, confirmed by the local administrator.

I always get the error line: aCode:-19, aMsg:HTTP Client error 401: Unauthorized My password is still correct and I deleted my complete profile and setup everything from scratch. It does not help yet. I attached the log file below.

I appreciate and would thank you in advance for any help.

Best regards,

LordSnyder

1st-setup:2017-4-5 8:49:43.388:[null] We are not going to perform a startup because we do not have a name yet and the calendar is probably still created. (set uri in mivExchangeCalendar.js:598) 1st-setup:2017-4-5 8:49:43.397:Exchange EWS Provider is installed. 1st-setup:2017-4-5 8:49:43.398:Exchange EWS Provider is installed from:file:///home/Downloads/exchangecalendar-v3.9.0.xpi 1st-setup:2017-4-5 8:49:43.398:Exchange EWS Provider is version:3.9.0 1st-setup:2017-4-5 8:49:43.399:Exchange EWS Provider is active. 1st-setup:2017-4-5 8:49:53.821: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:49:53.822: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:49:53.822: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:49:53.928: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:49:53.929: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:49:53.930: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:49:53.946:sendAutodiscoverySOAP.onSendError: aCode:-9, aMsg:Error resolving hostname 'autodiscover

'. Did you type the right hostname. (STATUS_RESOLVED) 1st-setup:2017-4-5 8:49:53.946:ecAutodiscoveryError. aCode:-9, aMsg:Error resolving hostname 'autodiscover
'. Did you type the right hostname. (STATUS_RESOLVED) 1st-setup:2017-4-5 8:49:53.946:exchWebServicesAutodiscoveryError: Going to try old POX autodiscovery as SOAP autodiscovery did not succeed. 1st-setup:2017-4-5 8:49:53.947:autodiscover email:
, domain:

1st-setup:2017-4-5 8:49:53.950:sendAutodiscover.execute:

http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a

1st-setup:2017-4-5 8:49:53.952: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:49:53.953: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:49:53.953: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:50:12.175:exchWebServicesConvertIDOK: user:DOMAIN\NAME, mailbox:

1st-setup:2017-4-5 8:50:12.188: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:50:12.189: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:50:12.189: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:50:12.425:exchWebServicesCheckServerAndMailboxError: aCode:-19, aMsg:HTTP Client error 401: Unauthorized URL:https://
/ews/exchange.asmx

1st-setup:2017-4-5 8:51:42.990: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:51:42.991: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:51:42.991: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:51:43.23: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({70d2b4fe-a552-48cd-8d93-1d8437a56b53}) 1st-setup:2017-4-5 8:51:43.24: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({1040ebe3-6ed1-45a6-8587-995e082518d7}) 1st-setup:2017-4-5 8:51:43.24: >>>>>>>>>>> SUBMIT THIS LINE TO https://github.com/Ericsson/exchangecalendar/issues: ecnsIAuthPrompt2.getInterface({0d6ce59c-ad5d-4520-b4d3-09664868f279}) 1st-setup:2017-4-5 8:51:43.43:sendAutodiscover.onSendError: aCode:-9, aMsg:Error resolving hostname 'autodiscover

'. Did you type the right hostname. (STATUS_RESOLVED) 1st-setup:2017-4-5 8:51:43.43:ecAutodiscoveryError. aCode:-9, aMsg:Error resolving hostname 'autodiscover
'. Did you type the right hostname. (STATUS_RESOLVED)

mverouden commented 7 years ago

As you will see, when searching the internet concerning this issue, a lot of users are experiencing the same issue. The Exchange EWS provider add-on for Thunderbird is very highly used add-on, therefore, I expect that the community will quickly resolve this issue.

The following link, https://mesquilla.net/betas/exchangecalendar-4.0.1002.xpi, provides a temporary solution, although not all features are working. At least you will be able to see your calendar again.

Regards,

LordSnyder commented 7 years ago

Dear mverouden,

Thank you very much for the quick solution. At least I can see the calender now, but still inserting new appointments is not possible. But therefore I wait for the next beta-version.

Best regards,

tikkav commented 7 years ago

580

ppoilbarbe commented 7 years ago

Same issue. It seems that password is not sent if already registered in Thunderbird or asked to user when needed.

phvajjha commented 7 years ago

I have the same issue. Got locked out of my corporate account twice this morning while I was trying to fix this. Looks like a wrong/old password is cached somewhere? I checked and deleted all saved passwords from the Mozilla preferences screen, still no luck. Will get the beta for now.

iaean commented 7 years ago

Same issue here. After TB update to 52.1.1...

havatv commented 7 years ago

Same issue here. Through #580 I found a version (exchangecalendar-4.0.1003.xpi) that works for me. TB 52.1.1, Lightning 5.4, Ubuntu 14.04.

ghost commented 7 years ago

Thank you @mverouden - that gives me enough (can see meetings, get reminders, not tested other stuff) functionality :-)

mverouden commented 7 years ago

Hi all,

Somewhere in the other issues I found the following update: https://drive.google.com/open?id=0B83tjEuIQ0gDREdDWkJodE1Bb2c it contains exchangecalendar-4.0.1003.xpi (see issue #580)

lpesek commented 7 years ago

The calendar function quit working. It is showing a lock next to the network icon and it never asks me for my calendar password. When I try to create a new calendar I get to the point where you select the "Check server and mailbox" I get the message: Error during checking of server and mailbox: HTTP Client error 401: Unauthorized URL:https//outlook.office365.com/EWS/Exchange.asmx, (Code: -19). My thunderbird version is 52.1.1, my lightning version is 5.4.1.1 and my Exchange EWS version is 3.9.0 Also email is working just fine so I don't understand why it's having trouble with the calendar.

Any help would be appreciated.

Larry Pesek

ds2k5 commented 7 years ago

Hi mverouden, tryed the Version 4.0.1003 but got the same Error: 401

Thunderbird: 52.1.1 Lightning 5.4.1.1

RVetschera commented 7 years ago

I had the same problem on one machine with the German version of Thunderbird installed, but not on another machine where I have the English version of Thunderbird. it seems that in the "EWS Calender and Mail settings" tab of EWS properties, the dropdown list for "Folder base" is present in the English version, but not in the German version, that probably caused it to refer to the wrong folder. The list is back in 4.0.1002 beta

ds2k5 commented 7 years ago

Hi RVetschera, i tryed with German and English Version of Thunderbird: 52.1.1 Lightning 5.4.1.1 But did not work.

Exchange Server 2010

RVetschera commented 7 years ago

Can you set the "Folder base" in either version?

ds2k5 commented 7 years ago

Can you set the "Folder base" in either version?

hmmm... dont know how

ds2k5 commented 7 years ago

001_create_cal 002_create_cal 003_create_cal 004_create_cal 005_create_cal 006_create_cal

But if i open the URL an enter the same accout data the login did not fail

https://mailserver.doamin.de/EWS/Exchange.asmx

RVetschera commented 7 years ago

It seems the list is not present in the pictures you sent. In the version I am using it is right below he "Share folder Id" field.

ds2k5 commented 7 years ago

Using 4.0.1003 plugin

martok commented 7 years ago

The working version I'm currently using (4.0.1003 de-DE) does not have this dropdown in the setup screen either - it only appears later when modifying an existing calendar.

RVetschera commented 7 years ago

I just had 4.0.1002 installed, there it is present also in the German version (and it was present in the English version with 3.9.0), I am not familiar with the code, so I have no idea what causes this erratic behavior. I was hoping it was a localization issue, bu it now seems it is not.

ds2k5 commented 7 years ago

Tryed now with 4.0.1002 ... but the same

001_create_cal_v2

002_create_cal_v2

ds2k5 commented 7 years ago

With Version: 4.0.0-beta 1 and Username: @domain.tld it work, insted of username and domain separately

https://github.com/ExchangeCalendar/exchangecalendar/releases/tag/v4.0.0-beta1

Timberwolf76275 commented 7 years ago

I have found a fix for this 1.sudo apt-get purge thunderbird*

  1. sudo apdatedb
  2. restart pc
  3. reinstall thunderbird & setup email USE CARE DO NOT LET THUNDERBIRD SAVE PASSWORD YOU WILL END UP WITH SAME ERROR
  4. Install addons lightning and .xpi ver 4.0.1002
  5. Setup up exchange cal. with server http & all relavent info again DO NOT LET THUNDERBIRD SAVE PASSWORD It is a little nerving that you must type password everytime but security comes first

DO NOT LET THUNDERBIRD SAVE THE PASSWORD THE SAME F+#ẞ89ẞ ERROR WILL COME UP

ppoilbarbe commented 7 years ago

For us, TB 52.2.1 + EWS 4.0.0-beta1 + Exchange 2013 it works perfectly. Whether we enter password each time or register it in Thunderbird

Timberwolf76275 commented 7 years ago

maybe the problem is with my employers system & exchange server I cannot let thunderbird save password or the error pops up

TypedLambda commented 7 years ago

I got Offic365 working with a workaround:

kev-bo commented 7 years ago

TypedLambda - what versions of Thunderbird and what addons (and versions) are you using to make it work.

Timberwolf76275 commented 7 years ago

ver 52.2.1 64bit

TypedLambda commented 7 years ago

Its 52.21 64bit on TrueOS/FreeBSD git commit bedeb6804e76fa5a29a50786ca643c829084d063 from https://github.com/ExchangeCalendar/exchangecalendar/commits/master (the maintained version of this repository)

OSguard commented 7 years ago

i have the same problem that i get no popup for the password. Exchange forces me to change the password webinterface. I removed it from thunderbird passwort manager but this also not helped. I guess somewhere old authentication is still cached.

enozkan commented 7 years ago

Have you tried, as mentioned above, the maintained fork at https://github.com/ExchangeCalendar/exchangecalendar/releases

dustinboston commented 7 years ago

@enozkan That worked! Thanks!

flod1 commented 7 years ago

Works, thanks

suikula commented 7 years ago

Im still having problems with exchange calendar. Stopped working. I updated to https://github.com/ExchangeCalendar/exchangecalendar/releases and thunderbird is 52.4.0 (64-bit).

When I add the calendar to my thunderbird this is the error I get.. serverQueue: notify: err:TypeError: this.jobs[this.calendars[this.calendarIndex]] is undefined serverQueue: notify: err:TypeError: this.jobs[this.calendars[this.calendarIndex]] is undefined serverQueue: notify: err:TypeError: this.jobs[this.calendars[this.calendarIndex]] is undefined serverQueue: notify: err:TypeError: this.jobs[this.calendars[this.calendarIndex]] is undefined

and the calendar remains empty.. Any help ?

Timberwolf76275 commented 6 years ago

I had this problem also. the work around I found was not let Thunderbird save the password but now the problem has rose again I have deleted t-bird with terminal using purge found the .thunderbird folder and deleted it. restarted pc ran purge again re-installed t-bird via terminal all ok no saving password, reinstalled Lightning & xpi a no go. The only thing I can think of that it does not like symbols in password I had the problem with another software.

jolyont commented 6 years ago

I had this problem with version 3.9.0 but happily the v4.0.0 Beta 5 fixed it immediately. Nice work!