grahamr975 / EWS-Office365-Contact-Sync

Uses Exchange Web Services to synchronize a Global Address List in Office 365 to a user's mailbox
MIT License
96 stars 21 forks source link

Error 404 and 503 since 28.April.2021 #41

Closed mandelbrotmedia closed 3 years ago

mandelbrotmedia commented 3 years ago

Hi,

since 28.April 2021 i have the following errors:

2021.04.29 08:03:08 FATAL Failed verify that XXX exists for user1@domain.com Ausnahme beim Aufrufen von "Save" mit 1 Argument(en): "The request failed. Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden."

2021.04.29 08:03:09 FATAL Failed verify that XXX exists for user1@domain.com Ausnahme beim Aufrufen von "Save" mit 1 Argument(en): "The request failed. Der Remoteserver hat einen Fehler zurückgegeben: (503) Server nicht verfügbar."

the script worked fine for a few weeks before. i did not change anything on my site.

any hints?

mandelbrotmedia commented 3 years ago

i found the error!

as i started i had problems with autodiscover and i switched to "CAS URL Option 2" in Connect-EXCExchange.ps1:

` #CAS URL Option 2 Hardcoded

    $uri=[system.URI] "https://outlook.office.com/ews/exchange.asmx"  
    $service.Url = $uri    `

this worked fine until 28.April 2021. Maybe MS changed the URL. So i now use the following URL:

` #CAS URL Option 2 Hardcoded

    $uri=[system.URI] "https://outlook.office365.com/ews/exchange.asmx"  
    $service.Url = $uri    `

The script works again now.