Skip to content
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

Vdirsyncer does not work with iPhone hotspot on macOS #1148

Open
wenzlawski opened this issue Nov 13, 2024 · 1 comment
Open

Vdirsyncer does not work with iPhone hotspot on macOS #1148

wenzlawski opened this issue Nov 13, 2024 · 1 comment

Comments

@wenzlawski
Copy link

wenzlawski commented Nov 13, 2024

Everything works as expected on normal Wifi but fails when using a hotspot from a mobile phone.

I assume it times out, as there is a long pause between Sending request... and the error output.

vdirsyncer, version 0.19.3
Python version 3.12.7
macOS Sequoia 15.1

vdirsyncer -vdebug sync output:

debug: Fetching value for password.fetch with command strategy.
debug: Found cached value for ['command', ...].
Syncing calendar_posteo
debug: ====================
debug: PROPFIND 
debug: {'User-Agent': 'vdirsyncer/0.19.3', 'Content-Type': 'application/xml; charset=UTF-8', 'Depth': '1'}
debug: b'<?xml version="1.0" encoding="utf-8" ?>\n            <propfind xmlns="DAV:">\n                <prop>\n                    <resourcetype/>\n                    <getcontenttype/>\n                    <getetag/>\n                </prop>\n            </propfind>\n            '
debug: Sending request...
Syncing contacts_posteo
debug: ====================
debug: PROPFIND 
debug: {'User-Agent': 'vdirsyncer/0.19.3', 'Content-Type': 'application/xml; charset=UTF-8', 'Depth': '1'}
debug: b'<?xml version="1.0" encoding="utf-8" ?>\n            <propfind xmlns="DAV:">\n                <prop>\n                    <resourcetype/>\n                    <getcontenttype/>\n                    <getetag/>\n                </prop>\n            </propfind>\n            '
debug: Sending request...
error: Unknown error occurred for calendar_posteo: Cannot connect to host posteo.de:8443 ssl:default [None]
error: Use `-vdebug` to see the full traceback.
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/cli/tasks.py", line 74, in sync_collection
debug:     await sync.sync(
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/sync/__init__.py", line 149, in sync
debug:     a_nonempty = await a_info.prepare_new_status()
debug:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/sync/__init__.py", line 55, in prepare_new_status
debug:     async for href, etag in self.storage.list():  # type: ignore[attr-defined]
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/storage/dav.py", line 853, in list
debug:     async for href, etag in super().list():
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/storage/dav.py", line 672, in list
debug:     response = await self.session.request(
debug:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/storage/dav.py", line 413, in request
debug:     return await http.request(method, url, session=session, **more)
debug:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/dfnrv7dckr3km3vi9lh3k1fpqdkprlx3-python3.12-vdirsyncer-0.19.3/lib/python3.12/site-packages/vdirsyncer/http.py", line 184, in request
debug:     response = await session.request(method, url, headers=headers, **kwargs)
debug:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/xkaby9wz7izp9rgqf29f4fqcf0hlslv0-python3.12-aiohttp-3.10.8/lib/python3.12/site-packages/aiohttp/client.py", line 659, in _request
debug:     conn = await self._connector.connect(
debug:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/xkaby9wz7izp9rgqf29f4fqcf0hlslv0-python3.12-aiohttp-3.10.8/lib/python3.12/site-packages/aiohttp/connector.py", line 557, in connect
debug:     proto = await self._create_connection(req, traces, timeout)
debug:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/xkaby9wz7izp9rgqf29f4fqcf0hlslv0-python3.12-aiohttp-3.10.8/lib/python3.12/site-packages/aiohttp/connector.py", line 1002, in _create_connection
debug:     _, proto = await self._create_direct_connection(req, traces, timeout)
debug:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug:   File "/nix/store/xkaby9wz7izp9rgqf29f4fqcf0hlslv0-python3.12-aiohttp-3.10.8/lib/python3.12/site-packages/aiohttp/connector.py", line 1293, in _create_direct_connection
debug:     raise ClientConnectorError(req.connection_key, exc) from exc
@WhyNotHugo
Copy link
Member

This sounds like an issue with your network, not vdirsyncer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants