Comments (4)
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.
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.
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.
ok thank you!
from exchangelib.
Related Issues (20)
- Can't browse public_folders_root anymore HOT 32
- exchangelib.errors.ErrorAccessDenied: Not allowed to access Non IPM folder. HOT 23
- Can junk mail rules be created by exchangelib? HOT 1
- Validation rule error when manage inbox rules HOT 3
- `folder.parts` no longer returns root of hierarchy in list of parts (5.2.1) HOT 9
- `ErrorNonExistentMailbox` in version 5.2.1 but not in 5.2.0 HOT 6
- exchangelib.errors.UnauthorizedError: Invalid credentials for https://[domain].de/EWS/Exchange.asmx HOT 6
- Create calendar appointment in another account as access data, the appointment is created in the access account. HOT 3
- Get all Public Folders HOT 23
- ErrorInvalidSchemaVersionForMailboxVersion with exchangelib v5.2.1 and Exchange server version 15.2.1544.4 HOT 45
- ValueError trying to delete a rule HOT 2
- Error getting folders for v5.2.1+ (server 2010sp3 upd.29) HOT 3
- Cannot fetch calendar folder HOT 4
- Problem getting auth type from Exchange server HOT 15
- The request failed schema validation HOT 9
- Get more than 100 records with a.protocol.resolve_names HOT 1
- EWS does not support returning more than 100 results. See https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/resolvenames-operation
- How to disable check_hostname HOT 5
- some new distinguished folders cause 500 error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exchangelib.