RiffSphere / Collectarr

36 stars 0 forks source link

Adding collection - FAILED 200 #1

Closed samcro1967 closed 3 years ago

samcro1967 commented 3 years ago

Got the docker container up and running today. Works fine in dry run. When I set dry run to false the collections fail to add. Logs are below. Any ideas?

Log

[21-08-08 19:59:02] INFO - Config Loaded
[21-08-08 19:59:02] INFO - API tested succesfully
[21-08-08 19:59:02] INFO - Rootfolder parsed
[21-08-08 19:59:02] INFO - *****************************
[21-08-08 19:59:02] INFO - * Load collection blacklist *
[21-08-08 19:59:02] INFO - *****************************
[21-08-08 19:59:02] INFO - *****************************************************
[21-08-08 19:59:02] INFO - * Removing collectarr lists disabled in config file *
[21-08-08 19:59:02] INFO - *****************************************************
[21-08-08 19:59:02] INFO - ****************************************************************
[21-08-08 19:59:02] INFO - * Removing collectarr collection lists disabled in config file *
[21-08-08 19:59:02] INFO - ****************************************************************
[21-08-08 19:59:02] INFO - ****************************
[21-08-08 19:59:02] INFO - * Start adding collections *
[21-08-08 19:59:02] INFO - ****************************
[21-08-08 19:59:02] INFO - Checking 1715 movies in collection
[21-08-08 19:59:02] INFO - 353 collections with movies found.
[21-08-08 19:59:02] INFO - 4 lists currently monitored.
[21-08-08 19:59:02] INFO - Comparing existing lists with wanted collections from movies, and cleaning up.
[21-08-08 19:59:02] INFO - Prevent adding blacklisted collections.
[21-08-08 19:59:02] INFO - Adding 353 new collection lists
[21-08-08 19:59:08] [21-08-08 19:59:08] Adding collection <redacted and 352 others> Collection (352789) - FAILED 200
[21-08-08 19:59:08] INFO - ****************************************************
[21-08-08 19:59:08] INFO - * Adding actors disabled (set to 0) in config file *
[21-08-08 19:59:08] INFO - ****************************************************
RiffSphere commented 3 years ago

Adding a collection should return 201 for success or 401 for fail, seeing 200 is weird.

Can you let me know what you set rootfolder to? I did most tries with first, maybe it makes a mistake if set to movie. Can you also let me know what system you are running on? I had some weird behavior with docker on debian (for some reason it was behaving differently from other systems I tried).

Will add more logging, showing full json of the POST data over the weekend, to check what is wrong.

RhinoRhys commented 3 years ago

anyone using a URL base will need to have that option available in your configs, even though you can do a GET fine without it, the API is very specific with POSTs.

hope this helps

RiffSphere commented 3 years ago

@RhinoRhys Thank you very much. Could reproduce a FAILED 200 when setting URL Base in Radarr. Issue fixed by adding parameter to config file. Non required key to not break current installs, everything still works if no URL Base is set.

@samcro1967 Updating the docker now, try to update, set the "URLbase" parameter in your config file and try again. Please reopen if not solved.