BUG: Ombi TV show requests show "unknown" user + webhooks not reliably updating TV content #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to closed issue: #47 (Ombi webhook authentication fix)
Problem Summary
Even after the fix in commit
7b9c895(which added?secret=query parameter support for Ombi webhooks), two related issues remain:This breaks the core value proposition of linking downloads to the original Ombi requester, especially for TV shows.
Steps to Reproduce
OMBI_INSTANCESand enable webhooks via the one-click setup (SOFARR_BASE_URL+SOFARR_WEBHOOK_SECRET).Root Cause Analysis
Primary Cause: Incomplete user extraction for TV requests
File:
server/utils/ombiHelpers.js→extractRequestedUser()The function handles both object and string formats for
requestedUser/RequestedUserand has good fallbacks for movies:However, Ombi TV show request objects (returned by Ombi’s
/api/v1/Requests/tvendpoint and in webhook payloads) frequently use different field names or nesting for the requester:userrequestedByombiUserrequestedByUserseasons[]for multi-episode requestsWhen none of the current fields match, the function returns an empty string (
''), which is then displayed as "unknown" in the UI andfilterRequestsByUser().Movies work because their request objects consistently populate one of the supported fields.
Secondary Cause: Webhook processing appears ineffective for TV
File:
server/routes/webhook.jsPOST /api/webhook/ombi) correctly authenticates (thanks to #47) and callsprocessWebhookEvent().poll:ombi-requests(bothmovieandtvarrays) after a 2-second delay.Expected Behavior
Proposed Solution
1. Improve
extractRequestedUser()(highest priority)Add more Ombi TV-specific fields and deeper fallback logic in
server/utils/ombiHelpers.js:Optionally add a small debug log when returning empty for a TV-type request.
2. Strengthen Ombi webhook reliability
OMBI_WEBHOOK_REFRESH_DELAY_MS, default 2000).processWebhookEventfor Ombi until the new request appears with valid user data.requestedUserobject when extraction fails for TV events.3. Minor improvements
Additional Context
Resolved in commit
95bd703b26.TV show requests are still displayed I correctly. The enhancement #55 to show request date and link also not working and status of TV show requests is "unknown"
Resolved in commit
33b122d. TV request status, user, and date are now correctly extracted from childRequests[] sub-objects. See CHANGELOG for details.