BUG: Ombi webhook enable endpoint returning 404 in production #40
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?
Bug Description
The Ombi webhook setup is failing in production. When the frontend attempts to enable the webhook by sending a
POSTrequest tohttps://sofarr.i3omb.com/api/ombi/webhook/enable, the server responds with a404 (Not Found)error in the console:Root Cause
server/app.js(used for integration testing), the Ombi routes are imported and mounted correctly under/api/ombi:server/index.jsdoes NOT importcreateAppfromserver/app.jsor mount theombiRoutesrouter. Instead,server/index.jsduplicates the Express app configuration and fails to registerombiRoutes, causing all/api/ombi/*endpoints to return a404 (Not Found)in production.Proposed Changes
ombiRoutesinserver/index.js:/api/ombiinserver/index.js:Reopened and successfully closed via commit db809f2fb343bec48fe6c948fbaf6d66844a77b3 on the
developbranch.All automated tests passed successfully, confirming the Ombi routes
/api/ombi/*are now correctly mounted in the production server entry point.