IPV6 connectivity issues #1

Open
opened 2026-10-06 18:56:28 +00:00 by theis · 0 comments
Owner

Fix IPV6 connectivity.

Alternatively, work with only IPV4:

IPv6 connection timeouts are causing the delay. I tested the hostname from this machine:

  • DNS lookup: 0.001s
  • First IPv6 address: 10s timeout
  • Second IPv6 address: 10s timeout
  • IPv4 connection: 0.009s
    Synchronous HTTPX tries these addresses sequentially. Your timeout=10.0 applies to each connection attempt—not the whole request—so the two failed IPv6 attempts explain the ~20 seconds.
    Curl uses Happy Eyeballs, trying IPv4 shortly after IPv6 rather than waiting for those timeouts.
    To force IPv4 in src/vikunja_mcp/client.py:
    transport = httpx.HTTPTransport(
    local_address="0.0.0.0",
    trust_env=False,
    )
    with httpx.Client(
    transport=transport,
    timeout=10.0,
    trust_env=False,
    ) as client:
    response = client.get(API_URL, headers=headers)
    This bypasses the broken IPv6 connectivity without changing your system settings.
Fix IPV6 connectivity. Alternatively, work with only IPV4: IPv6 connection timeouts are causing the delay. I tested the hostname from this machine: - DNS lookup: 0.001s - First IPv6 address: 10s timeout - Second IPv6 address: 10s timeout - IPv4 connection: 0.009s Synchronous HTTPX tries these addresses sequentially. Your timeout=10.0 applies to each connection attempt—not the whole request—so the two failed IPv6 attempts explain the ~20 seconds. Curl uses Happy Eyeballs, trying IPv4 shortly after IPv6 rather than waiting for those timeouts. To force IPv4 in src/vikunja_mcp/client.py: transport = httpx.HTTPTransport( local_address="0.0.0.0", trust_env=False, ) with httpx.Client( transport=transport, timeout=10.0, trust_env=False, ) as client: response = client.get(API_URL, headers=headers) This bypasses the broken IPv6 connectivity without changing your system settings.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
theis/Vikunja-MCP#1
No description provided.