Skip to content

SGC (South Gloucestershire) scraper failing — TCP connection timeout, IP-level block on Lambda #404

Description

@symroe

Error (2026-06-29)

is_connect error: wreq::Error { kind: Connect, source: ConnectError("tcp connect error", 62.64.208.91:443, Os { code: 110, kind: TimedOut, message: "Connection timed out" }) }

Consecutive failures: 10 days (June 18–27).

History

SGC has been failing on and off since May with different error modes:

Issue #341 was closed yesterday as "completed", but the scraper is still failing today — now with a TCP connection timeout rather than a 503.

Investigation

From our environment (non-Lambda IP, through HTTPS proxy):

  • https://council.southglos.gov.uk/403 Forbidden ("Access denied")
  • https://council.southglos.gov.uk/mgWebService.asmx/GetCouncillorsByWard403 Forbidden

From Lambda (direct, no proxy):

  • TCP connect timeout to 62.64.208.91:443 — SYN not acknowledged

The server is running (our proxy gets a 403, not a timeout), but Lambda's IP range (3.x.x.x) appears to be blocked at the TCP firewall level. council.southglos.gov.uk resolves to 62.64.208.91 which is an OVH/Ionos-hosted IP — the council may have a firewall rule specifically denying AWS IP ranges.

Fix patterns ruled out

  1. HTTPS migration — already HTTPS
  2. verify_requests = False — TCP connect fails before TLS; cert verification isn't the issue
  3. http_lib = "playwright" — Playwright runs inside Lambda with the same blocked IP; won't help for a TCP-level firewall block
  4. URL changes — DNS resolves fine; the URL hasn't moved, the server is actively blocking Lambda IPs
  5. Proxy — previous proxy (SGC (South Gloucestershire) scraper failing — proxy returns 407 Proxy Authentication Required #306) returned 407; proxy infrastructure issue is separate

What needs to happen

This requires an infrastructure fix, not a scraper code change:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions