Comments (7)
Please try on your environment a fix from branch https://github.com/ezhov-evgeny/webdav-client-python-3/tree/bugfix/1-broken-upload-on-yandex-server
If it is fixed I'll publish it
from webdav-client-python-3.
Thanks, i got full message
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='yandex.ru', port=443): Max retries exceeded with url: /support/disk/webdav.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0343CC70>: Failed to establish a new connection: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютера'))
it's happend because urllib3 work with the domain level is higher. Ip address 5.255.255.88 is prohibited in my country. I connected VPN and got sucsess result.
Diferent ip's:
Обмен пакетами с yandex.ru [5.255.255.88] с 32 байтами данных: Ответ от 5.255.255.88: число байт=32 время=46мс TTL=55 ...
C:\Users\USER>ping webdav.yandex.ru Обмен пакетами с webdav.yandex.ru [213.180.204.148] с 32 байтами данных: Ответ от 213.180.204.148: число байт=32 время=45мс TTL=56 ...
But I still can’t understand why need a query to a domain one level higher. I use AirLiveDrive and Yandex webdav is working correctly without vpn.
from webdav-client-python-3.
I think you can simulate my situation if you block 5.255.255.88 in the firewall. In this case, even the built-in Windows network webdav drive works, but the library does not. Thanks.
from webdav-client-python-3.
I've blocked 5.255.255.88 and with Yandex, all tests are passed successfully include for upload_sync
.
Can you debug when it tries to get /support/disk/webdav.xml?
from webdav-client-python-3.
no VPN: (Windows webdav work correctly.)
>>> c.mkdir("rtf")
Traceback (most recent call last):
File "C:\python3.8\lib\site-packages\urllib3\connection.py", line 156, in _new_conn
conn = connection.create_connection(
File "C:\python3.8\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\python3.8\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютераDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\python3.8\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "C:\python3.8\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "C:\python3.8\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
conn.connect()
File "C:\python3.8\lib\site-packages\urllib3\connection.py", line 334, in connect
conn = self._new_conn()
File "C:\python3.8\lib\site-packages\urllib3\connection.py", line 168, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x04B35658>: Failed to establish a new connection: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютераDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\python3.8\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\python3.8\lib\site-packages\urllib3\connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "C:\python3.8\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='yandex.ru', port=443): Max retries exceeded with url: /support/disk/webdav.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x04B35658>: Failed to establish a new connection: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютера'))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 68, in _wrapper
res = fn(self, *args, **kw)
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 280, in check
response = self.execute_request(action='check', path=urn.quote())
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 162, in execute_request
response = self.session.request(
File "C:\python3.8\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\python3.8\lib\site-packages\requests\sessions.py", line 668, in send
history = [resp for resp in gen] if allow_redirects else []
File "C:\python3.8\lib\site-packages\requests\sessions.py", line 668, in
history = [resp for resp in gen] if allow_redirects else []
File "C:\python3.8\lib\site-packages\requests\sessions.py", line 239, in resolve_redirects
resp = self.send(
File "C:\python3.8\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\python3.8\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='yandex.ru', port=443): Max retries exceeded with url: /support/disk/webdav.xml (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x04B35658>: Failed to establish a new connection: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютера'))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in
c.mkdir("rtf")
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 68, in _wrapper
res = fn(self, *args, **kw)
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 300, in mkdir
if not self.check(directory_urn.parent()):
File "C:\python3.8\lib\site-packages\webdav3\client.py", line 70, in _wrapper
raise NoConnection(self.webdav.hostname)
webdav3.exceptions.NoConnection: Not connection with https://webdav.yandex.ru
with VPN
>>> c.mkdir("rtf")
True
from webdav-client-python-3.
from webdav-client-python-3.
I fixed all my troubles and sharing my changes.
client.zip
from webdav-client-python-3.
Related Issues (20)
- Verbose does?
- Support setting port number
- download functions on .txt files HOT 1
- delme
- Missing support for username-only authentication HOT 2
- Missing support for bulk PROPFIND requests
- upload_sync did not work correctly HOT 1
- webdav3.exceptions.MethodNotSupported HOT 1
- AttributeError: 'Client' object has no attribute 'publish'
- what's the point to HEAD the parent folder before uploading
- Deleting requires removing self.webdav.root from list results and not re-encoding (corrupting) encoded items.
- Reading the response doesn't handle exception(s) raised by requests
- Move to GitHub Actions CI/CD
- Remote resource not found
- Names are not retrieved for WebDav servers that use displayName in their response XML
- Migrate to GitHub Actions CI/CD HOT 1
- Update the `check` function to support using the `PROPFIND` method for checking
- Please make a new release in PyPI
- Can list() files, but cannot download. "Remote resource not found" HOT 1
- Release 3.14.6 doesn't work when trying to list() with get_info = True HOT 1
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 webdav-client-python-3.