-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Fails to connect - Configuration() call #17
Comments
Hi selonov,
Just use the |
Thank you. That helped. I am now stuck at parsing the Email item.ids = account.inbox.find_items(shape=IdOnly) for item in items: ..When I tyr to parse each element (sender for example), it only appears to On Wed, Sep 7, 2016 at 7:37 PM, Erik Cederstrand notifications@github.com
|
sender_data = ET.tostring(sender) On Thu, Sep 8, 2016 at 1:56 PM, Sergey Leonovich sleonovich@gmail.com
|
To fetch certain fields, e.g. |
I just committed a fix so |
Thank you very much. I will give it a shot. On Friday, September 9, 2016, Erik Cederstrand notifications@github.com
|
Will I be able to get new version from pip3 now ? On Friday, September 9, 2016, Erik Cederstrand notifications@github.com
|
Also. Perhaps one suggestion. If I supply invalid Windows credentials in Thanks again. On Friday, September 9, 2016, Erik Cederstrand notifications@github.com
|
Trying to upgrade to newer version on F23: [root@sergey_vm1 bin]# pip3 install exchangelib --upgrade
build/lib.linux-x86_64-3.4/lxml/includes
Rolling back uninstall of lxml On Fri, Sep 9, 2016 at 8:07 AM, Sergey Leonovich sleonovich@gmail.com
|
Yes, version 1.6.2 is available on PyPI now. The timeout is intentional (see #16). In short, there's no way to distinguish between an account that has been rate-limited, and and invalid credentials. But since this is popping up again, I think there should be a solution for this. Maybe something like |
Re: the build error: that's |
Erik. I appreciate all your help. I got it to work as I needed. I ended Have a good one. On Friday, September 9, 2016, Erik Cederstrand notifications@github.com
|
It's on the TODO now to add such a feature. Thanks for your suggestions! |
Thanks |
Hi there,
I am trying to use the module to connect to my company Exchange
I am getting stuck at Configuration call which returns this errors - appears to fail to create SOAP call
My code:
!/usr/bin/env python3
import exchangelib as e
user='XXXXX'
password='YYYYYY'
service_endpoint='https://mail.micron.com'
config = e.Configuration(
service_endpoint=service_endpoint,
username=user,
password=password,
verify_ssl=True,
auth_type='NTLM',
)
Error message:
Traceback (most recent call last):
File "./e", line 14, in
auth_type='NTLM',
File "/usr/lib/python3.4/site-packages/exchangelib/configuration.py", line 47, in init
verify_ssl=verify_ssl,
File "/usr/lib/python3.4/site-packages/exchangelib/protocol.py", line 158, in call
protocol = super().call(_args, *_kwargs)
File "/usr/lib/python3.4/site-packages/exchangelib/protocol.py", line 191, in init
self.version = Version.guess(self)
File "/usr/lib/python3.4/site-packages/exchangelib/version.py", line 179, in guess
return cls._guess_version_from_service(protocol=protocol, hint=api_version)
File "/usr/lib/python3.4/site-packages/exchangelib/version.py", line 220, in _guess_version_from_service
return cls.get_version_from_service(protocol=protocol, api_version=api_version)
File "/usr/lib/python3.4/site-packages/exchangelib/version.py", line 235, in get_version_from_service
allow_redirects=False)
File "/usr/lib/python3.4/site-packages/exchangelib/util.py", line 353, in post_ratelimited
raise TransportError('Unknown failure\n' + log_msg % log_vals)
exchangelib.errors.TransportError: Unknown failure
Retry: 0
Waited: 0
Timeout: 120
Session: 14124
Thread: 139994368284416
Auth type: <requests_ntlm.requests_ntlm.HttpNtlmAuth object at 0x7f52ed03f550>
URL: https://mail.micron.com
Verify: True
Allow redirects: False
Response time: 0:00:00.487085
Status code: 301
Request headers: {'Accept-Encoding': 'compress, gzip', 'User-Agent': 'python-requests/2.11.1', 'Accept': '/', 'Connection': 'Keep-Alive', 'Content-Length': '448', 'Content-Type': 'text/xml; charset=utf-8'}
Response headers: {'X-Powered-By': 'ASP.NET', 'Pragma': 'no-cache', 'Connection': 'close', 'Location': 'https://mail.micron.com/owa/', 'Content-Length': '0', 'Cache-Control': 'no-cache', 'Server': 'Microsoft-IIS/8.5', 'Date': 'Wed, 07 Sep 2016 22:29:41 GMT'}
Request data: b'<s:Envelope xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><s:Header><t:RequestServerVersion Version="Exchange2016" />/s:Header<s:Body><m:ResolveNames ReturnFullContactData="false"><m:UnresolvedEntry>DUMMY/m:UnresolvedEntry/m:ResolveNames/s:Body/s:Envelope'
Response data:
The text was updated successfully, but these errors were encountered: