GithubHelp home page GithubHelp logo

Comments (7)

ezhov-evgeny avatar ezhov-evgeny commented on August 19, 2024

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.

m9w avatar m9w commented on August 19, 2024

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.

m9w avatar m9w commented on August 19, 2024

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.

ezhov-evgeny avatar ezhov-evgeny commented on August 19, 2024

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.

m9w avatar m9w commented on August 19, 2024

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.

m9w avatar m9w commented on August 19, 2024

55Снимок
I seen dead package.

from webdav-client-python-3.

m9w avatar m9w commented on August 19, 2024

I fixed all my troubles and sharing my changes.
client.zip

from webdav-client-python-3.

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.