Giter VIP home page Giter VIP logo

Comments (4)

ecederstrand avatar ecederstrand commented on June 23, 2024

This is an issue with SSL certificates between your host system and the Exchange server, and not a problem with exchangelib as such. You would most likely get the same error if you did just:

import requests

requests.get("https://hosy/ews/exchange.asmx")

The reason curl works is because you connected to port 80, not 443, so there was no SSL certificate to validate. Try curl -vvv https://hosy/ews/exchange.asmx instead.

from exchangelib.

maimorag avatar maimorag commented on June 23, 2024

Hey @ecederstrand,
Thank you for your quick response!

is there any way to pass this?
if I try connecting using another server I get the Connection reset by peer':
Traceback (most recent call last): File "<string>", line 12790, in get_folder_by_path File "/usr/local/lib/python3.10/site-packages/cached_property.py", line 74, in __get__ return obj_dict.setdefault(name, self.func(obj)) File "/usr/local/lib/python3.10/site-packages/exchangelib/account.py", line 286, in inbox return self.root.get_default_folder(Inbox) File "/usr/local/lib/python3.10/site-packages/cached_property.py", line 74, in __get__ return obj_dict.setdefault(name, self.func(obj)) File "/usr/local/lib/python3.10/site-packages/exchangelib/account.py", line 350, in root return Root.get_distinguished(account=self) File "/usr/local/lib/python3.10/site-packages/exchangelib/folders/roots.py", line 145, in get_distinguished return cls._get_distinguished( File "/usr/local/lib/python3.10/site-packages/exchangelib/folders/base.py", line 221, in _get_distinguished return cls.resolve(account=folder.account, folder=folder) File "/usr/local/lib/python3.10/site-packages/exchangelib/folders/base.py", line 525, in resolve folders = list(FolderCollection(account=account, folders=[folder]).resolve()) File "/usr/local/lib/python3.10/site-packages/exchangelib/folders/collections.py", line 335, in resolve yield from self.__class__(account=self.account, folders=resolveable_folders).get_folders( File "/usr/local/lib/python3.10/site-packages/exchangelib/folders/collections.py", line 403, in get_folders yield from GetFolder(account=self.account).call( File "/usr/local/lib/python3.10/site-packages/exchangelib/services/get_folder.py", line 51, in _elems_to_objs for folder, elem in zip(self.folders, elems): File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 278, in _chunked_get_elements yield from self._get_elements(payload=payload_func(chunk, **kwargs)) File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 326, in _get_elements raise e File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 299, in _get_elements yield from self._response_generator(payload=payload) File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 262, in _response_generator response = self._get_response_xml(payload=payload) File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 395, in _get_response_xml r = self._get_response(payload=payload, api_version=api_version) File "/usr/local/lib/python3.10/site-packages/exchangelib/services/common.py", line 346, in _get_response r, session = post_ratelimited( File "/usr/local/lib/python3.10/site-packages/exchangelib/util.py", line 841, in post_ratelimited raise ErrorTimeoutExpired(f"Reraised from {e.__class__.__name__}({e})") exchangelib.errors.ErrorTimeoutExpired: Reraised from ConnectionError(('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')))

I tried to follow #455 but the retry policy hasn't work as well

from exchangelib.

ecederstrand avatar ecederstrand commented on June 23, 2024

In your last stack trace it looks like the server is not accepting connections. It's not possible from the stack trace to see why - it could be network issues, firewall issues, connecting to the wrong server, or something else.

Regarding the SSL certificate issue, I think you will get better help in a forum dedicated to SSL certificate validation.

from exchangelib.

maimorag avatar maimorag commented on June 23, 2024

ok thank you!

from exchangelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.