Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve host: EWS #36

Open
LxanderUA opened this issue Feb 27, 2024 · 5 comments
Open

Could not resolve host: EWS #36

LxanderUA opened this issue Feb 27, 2024 · 5 comments

Comments

@LxanderUA
Copy link

Nextcloud Hub 7 (28.0.1)
Exchange EWS Connector (1.0.37) from app store
Installed without errors.

At connecting account received error: Could not resolve host: EWS
Exchange

@ksainc
Copy link
Owner

ksainc commented Feb 27, 2024

Hi @LxanderUA

Are you getting this error while trying to connect to Office 365?

Sebastian

@LxanderUA
Copy link
Author

Trying to connect to Exchange 2010

@EarMobileh
Copy link

Had the same error. Found out I forgot to specify my domain. So the Account ID must be domain\username.

@ksainc
Copy link
Owner

ksainc commented Mar 14, 2024

@EarMobileh Thank you!

@LxanderUA I just wanted to add that if you are trying to connect to a internal exchange server, use ip addess in the account server portion and you should disable the transport verification in Admin Section -> EWS Connector -> Transport verification (SSL Verification), as the ssl certificate will not match properly for a internal server.

Sebastian

@ein-genie
Copy link

ein-genie commented May 3, 2024

Hi @LxanderUA

Are you getting this error while trying to connect to Office 365?

Sebastian

Hi,
I get this error while trying to connect Office 365. The log file contains the following entry:

Fehler: Could not link Microsoft account: Client error: POST https://login.microsoftonline.com/our_tenant_id/oauth2/v2.0/token resulted in a 400 Bad Request response:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'co (truncated...)

I took the settings from the https://github.com/ksainc/integration_ews/blob/main/docs/o365.md configuration.

EDIT:
I found a solution to my problem.
I use PHP8.3-FPM and the utf8_decode function is marked as DEPRECATED. That's why I had to replace the function in the lib/Components/EWS/EWSClient.php, file line 422, with the function mb_convert_encoding:

mb_convert_encoding($this->_transport_authentication->Secret, 'ISO-8859-1', 'UTF-8');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants