New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List indices Error with sonarr_list plugin #2132
Comments
Is this persistent? can you attach a debug log please? |
Hello @liiight , Unfortunatly the problem is persistent. I'd like to gather the demanded data, but I'm not quite sure which is the correct way - should I change the loglevel to debug or create a --bugreport? Best regards, Peter |
And here is the last crash report on debug-level. I have got the Series "3%" in my Sonarr-List - maybe this could 'confuse' the whole process? I deleted it now from the sonarr_list and watch what happens... P.S.: Deleting the series "3%" changed nothing - the error remains the same. |
One additional thougt - as I went through the debug logs I noticed that all series imported from the trakt list contain the year in round brackets i.e. (2012) etc. So there's unicode in the list taken from Trakt. Maybe this causes the problem? |
I don't want to bother, but because it is an interessting problem I allow me to bounce this issue. |
Parentheses are well within the ASCII range, but that's not the issue. A trace log might say shed some light on this. |
Thank you very much for the reply @cvium :) I hope you guys can do some 'developer magic' like you did in developing this fascinating tool. Best, |
As I said, a trace log would be helpful. |
Oh I'm sorry, I thought the submitted log was the needed. I now generated this Thank you for your patience ! Best, Peter |
The sonarr response looks like it's a list of all your shows. There's about 45 shows in the response. Maybe @liiight has an idea why. I've never worked with sonarr. |
Thanks again for answering so fast! So I gave up and drowned my Sonarr/trakt-sorrows in binge watching... :) Thanks for your time @cvium ! |
I'm a little preoccupied these days. I'll try to take a peek asap |
It seems like this could be a sonarr bug (though I'm not positive) are you on the latest sonarr version? |
Thanks in advance @liiight . @gazpachoking I'm on 2.0.0.5163 - the latest master as I understand it. |
Edit: messed around abit and magically got it working again, even on the latest update.. Dunno what I did exactly but heh it at least is working for me again. |
awesome! |
I am having this issue. Can anyone help? Just wanted to mention I have tried all sorts of things to fix it. Nothing seems to work. Am on the most recent version. Log files are identical. My config: tasks:
ImportTrakt:
trakt_list:
account: **********
list: watchlist
type: shows
accept_all: yes
list_add:
- sonarr_list:
base_url: http://localhost
port: 12468
api_key: ***********
ignore_episodes_with_files: true
ignore_episodes_without_files: true
search_missing_episodes: true
root_folder_path: **************
schedules:
- tasks: [ImportTrakt]
interval:
minutes: 5 |
can you please paste your logfiles anyway? worth taking another look |
Same issue here - logfile below - I'd appreciate any insight please. |
Can this be reopened please. It is not solved. |
When trying ssl.
My Sonarr Config
|
@Senojpd can you try adding so it will look like this in the end
|
HOLY FUCKING SHIT BOYS. IT WORKED! You legend, I've spent so many hours on this. Also, and no idea if it was related but I cleared my db files. |
Well @cvium @liiight looks like I found the issue to this bug, it seems to only happen when the user has set up a urlbase in sonarr, but hasn't added said base_path to the flexget config. Obviously this issue came about before the #2134 PR, but said PR actually fixes it by adding the base_path option (just users have to actually set it in the config) so just to make clear for anyone searching for a fix: if you have added a urlbase into sonarr make sure to add the base_path option into your flexget config or you will continue to run into this error until you either do such a thing, or remove the urlbase from sonarr. @Senojpd I think it was to do with the urlbase/base_path thing, as I believe when I was running into this error that was the last thing I added into my flexget config before it started working, but I wasn't so sure until I seen you had one set as well without the option set in the flexget config. |
Looks like the wiki page needs an update with the base_path option. I think we can probably also add some handling in the plugin to detect and report this better. I think at a minimum it should start checking the return code is 2xx before processing further. |
Thanks for all the help people, is running like a dream now! |
Guys you are so effing awesome! Thank you very much for clearing this issue! I used traktarr the whole time but now I am able to use this outstanding piece of work again and tailor it to my needs. Kudos, respect, thanks and love to you, who worked this out a little bit sniffing because of small tears of joy :) :) :) |
Excellent work thanks gents. |
I've added the base_path option to the wiki. Anyone should feel free to clarify or add notes there. It would also be great if somebody running sonarr could test checking return codes from sonarr and displaying a proper error message to the user rather than just crashing. |
funny thing is; is that I've tried doing curl commands to sonarr with and without the url base in the call, and whenever I leave out the url base it doesn't display anything. no return codes, no error messages, no nothing.. so idk how exactly we would go about setting up a proper error message for this.. Example with and without the url base being set in the curl command. |
I think you need extra options to get curl to write out status codes. Try adding |
okay with url base in the curl command it comes out as 200, without the url base in the curl command it comes out as a 303 @gazpachoking |
Expected behaviour:
Synchronisation of the Trakt-List 'serien' to Sonarr
Actual behaviour:
no synchronisation; task series_unseen crashes with error " BUG: Unhandled error in plugin list_add: list indices must be integers, not unicode"
Config:
Log:
Crash-Log:
Additional information:
The text was updated successfully, but these errors were encountered: