Skip to content

Port 5007 (Downloader) hangs indefinitely on Newznab proxy requests (/api?t=*) #78

Description

@yeathn

Version: v1.0-beta.12 Docker image: pcjones/mediathekarr:beta (pulled 2026-02-21)

Description

The MediathekArrDownloader on port 5007 accepts TCP connections and logs incoming requests for /api?t=caps and /api?t=search, but never sends an HTTP response back to the caller. The connection hangs until the client times out.

This causes Prowlarr to repeatedly time out when fetching indexer capabilities, eventually marking MediathekArr as "disabled due to recent failures" and returning 429 to Radarr/Sonarr.

Setup

  • MediathekArr runs behind gluetun (network_mode: service:gluetun)
  • Prowlarr also uses network_mode: service:gluetun (shared network namespace)
  • Prowlarr configured with http://<host-ip>:5007 as per documentation

Steps to Reproduce

# From inside Prowlarr container (shares network namespace with MediathekArr):
curl -v --max-time 15 "http://localhost:5007/api?t=caps"

Expected: HTTP 200 with XML caps response Actual: TCP connects, request is sent, connection closes without any HTTP response

Log Evidence

The Downloader receives the request and starts proxying to the Server, but never completes:

[MediathekArrDownloader] info: Program - Incoming Request: GET /api?t=caps
[MediathekArrDownloader] info: HttpClient.Default.LogicalHandler - Start processing HTTP request GET http://localhost:5008/api/?*
[MediathekArrDownloader] info: HttpClient.Default.ClientHandler - Sending HTTP request GET http://localhost:5008/api/?*

No "Finished processing" or response log follows. The request hangs indefinitely.

Additional Findings

Endpoint | Port | Result -- | -- | -- /download/api?mode=... (own endpoint) | 5007 | ✅ responds instantly /api?t=caps (direct) | 5008 | ✅ HTTP 200, correct XML /api?t=caps (via proxy) | 5007 | ❌ no response, timeout /api?t=search&q=test (via proxy) | 5007 | ❌ no response, timeout

Port 5008 (MediathekArrServer) works correctly and returns valid Newznab responses. The Downloader's own /download/api endpoints work fine. Only the proxy to port 5008 for Newznab requests is broken.

Workaround

Configure Prowlarr with http://localhost:5008 instead of port 5007. Since both Prowlarr and MediathekArr share the same network namespace (gluetun), port 5008 is directly accessible without needing to expose it via port mapping.

Suspected Cause

The Downloader's HttpClient proxy appears to receive the response from the Server (port 5008) but fails to forward it back to the caller — possibly a keep-alive / connection termination handling issue in the proxy code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions