Shraymonks / unmonitorr

Unmonitor media in Radarr and Sonarr from Plex webhook events
https://hub.docker.com/r/shraymonks/unmonitorr
ISC License
25 stars 0 forks source link

Stopped working with Sonarr and Radarr #8

Closed deandmx closed 10 months ago

deandmx commented 10 months ago

All apps are the latest versions. This is the Radarr error I get:

Failed to get movie information from radarr for tmdbId: XXXXXX XXXXXXXXXX TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:399:5) at new URL (node:internal/url:560:13) at Api.getUrl (file:///usr/src/app/dist/utils.js:9:21) at unmonitorMovie (file:///usr/src/app/dist/radarr.js:18:52) at file:///usr/src/app/dist/index.js:43:24 at Layer.handle [as handle_request] (/usr/src/app/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:144:13) at done (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:45:7) at indicateDone (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:49:68) at Multipart.<anonymous> (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:166:7) { input: 'movie', code: 'ERR_INVALID_URL' }

This is the Sonarr error:

Failed to get series lists from sonarr: TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:399:5) at new URL (node:internal/url:560:13) at Api.getUrl (file:///usr/src/app/dist/utils.js:9:21) at unmonitorEpisode (file:///usr/src/app/dist/sonarr.js:23:48) at file:///usr/src/app/dist/index.js:41:24 at Layer.handle [as handle_request] (/usr/src/app/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:144:13) at done (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:45:7) at indicateDone (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:49:68) at Multipart.<anonymous> (/usr/src/app/node_modules/.pnpm/multer@1.4.5-lts.1/node_modules/multer/lib/make-middleware.js:166:7) { input: 'series', code: 'ERR_INVALID_URL' }

Shraymonks commented 10 months ago

Hey @deandmx,

Can you verify that RADARR_HOST and SONARR_HOST are set correctly? They must be valid URLs with the protocol included (http:// or https://).

deandmx commented 10 months ago

I've checked that the address are correct. I'm also assuming that if they were incorrect I wouldn't be able to see the name of the movie or series being scrobbled from Plex? I manually redacted the movie name from the Radarr log.

I've had the service working in the past and haven't changed any settings. I only noticed that it had been failing silently because I saw a download for a film I had already watched.

Shraymonks commented 10 months ago

Do you mean the tmdbId and year? It gets that initial info from Plex.

The errors do indicate that there is something wrong with the urls. When you start up unmonitorr it should log

Radarr: RADARR_HOST
Sonarr: SONARR_HOST

Are those the exact urls you use to access Radarr and Sonarr?

Everything should work from before, did the issue start happening after updating unmonitorr?

deandmx commented 10 months ago

They are, and if I copy and paste the URLs, they open the respective services.

I'm not sure when the problem started because I use watchtower to automatically update my containers.

Shraymonks commented 10 months ago

Is it possible to share one of these URLs?

I'm guessing there's maybe a subnet or port out of range or maybe a character that's causing the URL validation to fail.

deandmx commented 10 months ago

Radarr: "http://192.168.0.79:7878" Sonarr: "http://192.168.0.79:8989"

Shraymonks commented 10 months ago

You don't have those quotes in the variables right? Otherwise that should be fine 🤔

deandmx commented 10 months ago

🙈 Mystery solved! So dumb, I hate computers lol. Thanks for troubleshooting with me.