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
Error 500 when marking album as wanted #275
Comments
Do you have your newzbin uid and password set? On Aug 17, 2011, at 4:47 PM, scuffe82 wrote:
|
Yes my username and password are set. I'm assuming that by uid you mean username....right? |
i don't have a newzbin account so i can't test. sbuser wrote the newzbin code so he'll have to speak on this On Aug 17, 2011, at 7:09 PM, scuffe82 wrote:
|
Does the nzb that comes up have "report:size" attributes in it? |
So if i manually open the URL from above i get a slightly different return URL. The reports page gives me 4 results for this album Here is the URL that shows up in the logs
Here is the return URL once open it manually and fill in my username/pass when prompted
The only variable i see different in the URL is the retention= I'm not certain what you mean by "Does the nzb that comes up have "report:size" attributes in it? If i look through the page source for the report i get from manually opening the URL there is a report:size element For example this report has 4 of them one for each result |
Sorry, I didn't mean nzb file - I meant xml file. The response from the search. Looks like you're saying it does have report:size attributes. Newzbin is working fine for me when I try. Please double check your username/password in your settings. It's not a userid or userhash it's the actual username and password that are required in the headphones settings. If you double check (and then check again please) and it still doesn't work then private message me the search you are trying and I will take a look. The fact that you say it's happening with any album you try with Newzbin makes me pretty sure you have a username/password problem. |
I had this same issue, however I was able to correct by replacing my newzbin email address as the login and instead use the short username. This has corrected the issue for me. |
I was getting the same error even though using just my short username in the newzbin settings. I also use nzbmatrix so I just unchecked the newzbin box and saved settings. At last now headphones is completing the search on nzbmatrix and sending the results to sabnzd successfully. I guess something must be borked in the newzbin search code. |
I'm having the same problem, and as @ventureboy mentioned, turning off newzbin stops the error from happening. I've even gone one step further - as a workaround, I disable newzbin, then "want" a bunch of albums and then enable newzbin again. |
Same problem, and I only use Newzbin so I'm unable to download anything. 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): |
I'm running Python 272 as well... |
So newzbin doesn't work on the first run, but it'll work if you reenable it after the initial search? I don't have a newzbin account but I want to get this fixed ASAP. If you guys cam help test that would be great On Nov 13, 2011, at 2:51 AM, tylersheridanreply@reply.github.com wrote:
|
Sure, I can help. What do you need from me? Tyler Sheridan
|
Me too - let me know what I can do. |
in searcher.py, def getNewzbinURL, print f.read() results in...
in the next release you may also want to add something to catch 'error' titles like:
|
I am also getting this error when it tries to fetch an album from nzbmatrix: 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): It finds the album but seems it cannot send it to sabnzbd. I have double checked my urls and API keys, everything checks out. |
do you get the same error when you try downloading the nzb (rather than sending directly into sab)? double check your sab settings towards the top of the settings list. also, nzbmatrix requires username and api, not a url. |
This is what is in my log entries, if I click the on the best result link it downloads the nzb fine. My sabnzbd settings are correct and double checked. Timestamp Level Message |
Some people were having this issue with nzbs.org, but never with nzbmatrix On Sun, Jan 8, 2012 at 6:32 PM, drzoidberg33 <
|
Thanks rembo10, I just checked with another artist and it works fine, seems to be a problem specific with this specific artist/album: 2012-01-09 00:09:06 INFO Found best result: Aerosmith...Get.A-Grip - 169.0 MB Will check a few others and see what happens. |
Ok, there may be an issue on my side when adding a new artist. I am getting this in the log: Timestamp Level Message If I go to the musicbrainz site I can browse the artist fine. |
NBZMatrix seems to be having RSS issues. I notice I get this problem and upon checking the status it shows issues. It seems headphones stalls if it doesn't get the data or incomplete from nzbmatrix...just sits at parsing nzbmatrix data. |
The error handling isn't great and I never really got around to cleaning that code up. Probably gonna be on the agenda for today :) On Apr 2, 2012, at 3:43 AM, Myles McNamarareply@reply.github.com wrote:
|
Yeah but Python is pretty good at error handling so now that i'm finishing up with my last customer projects I should be able to contribute and help out on this. I have noticed it is pretty buggy but that is to be expected, especially with music and all the problems that can go wrong. I remember seeing your post whenever you started this project and the first thing i thought was well that's going to be interesting because there are SO many variables dealing with music compared to movies and tv shows. Either way you've done a great job so far and anybody who says otherwise obviously knows nothing about developing. Good luck man and thanks for all your hard work so far! |
This only occurred after I set the retention. After fiddling around with it, I discovered if you set the retention to 1, and then do a search, the error does not occur. If you then blank out the retention, it works as expected. Putting in any number seems to kill it eventually. |
I can verify that I only have this issue with newzbin nzbs. Nzbmatrix works fine. |
retention + newzbin? don't have a newzbin acct so haven't tested or run into any problems. hopefully we can debug this soon - it's been open far too long! |
I should have mentioned this in my post, but I ran into the error with NZBMATRIX, not newsbin, and only after I set the retention. |
so i dug through the code a bit, but i could be completely wrong. In the getresultNZB function in searcher.py: The statement: if result[3] == 'newzbin' is returning false even though newzbin is being used. Therefore the wrong urlopen() process is being executed. |
It doesn't look like result[2] is being populated with an appropriate URL. With nzbmatrix results, I get an actual URL. With newzbin, i just get a number. |
i found that newzbin fails due to authentication, so i changed the provider url from:
to:
|
Thanks for looking into this guys! Let's gets this hammered out tomorrow On Apr 21, 2012, at 2:13 AM, Joe Brownreply@reply.github.com wrote:
|
SOLUTION:That was not the issue for me. The problem is that when the resultlist is sorted into newlist, the provider information gets dropped. You need to change: on lines 404 and 851 of searcher.py I'm not sure why 'delta' replaced result[3]. I don't really see delta being used anywhere. |
Delta gets used on the next line to sort the list (but this only happens if "Target Bitrate" is selected in the config): I think your solution works, and I just change the line above to title[4] God this code is really messy! Nice find though - that's definitely (one of) the issues |
Hows the fix working? |
Still not working 100% for me. I still get the above error or a few albums. |
Yeah I actually just noticed your getting a different error (the ascii error). There's an open issue for that, I might have you guys post your config so I can debug this. On Apr 22, 2012, at 2:49 AM, mkniceguyreply@reply.github.com wrote:
|
Haven't had any errors yet! As far as code cleanup: It may be good to split up searchers.py and have a separate file for each provider. Look at sick-beard for an example (https://github.com/midgetspy/Sick-Beard/tree/master/sickbeard/providers). This would be a major overhaul though. Probably something for v2. |
Odd thing is, I don't see any unusual ascii char. in the album I'm testing with. http://musicbrainz.org/release-group/64057bd1-ac2c-3a65-94b8-7540037c4a09 and there is nothing in the title or artist (at least that I can see). rembo10, do you want me to post my config here? Not sure which open issue you might be referring to so if you want me to post there could you link it please? Thanks for all your help! |
#359 seems to be dealing with the ascii error. I think we solved this one so if you want to post in that thread I'll take a look and try to debug where it's going wrong On Apr 23, 2012, at 8:16 PM, mkniceguyreply@reply.github.com wrote:
|
Whenever i mark an album as wanted i get an error 500 traceback::
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Here are the last few lines from the log showing the search on newzbin::
If i open the URL from the search i get a valid list of results. I've marked multiple albums as wanted and get the same result each time. In opening the URL it doesn't matter if there are valid results or is the search comes back blank i keep getting the same index error.
Running Version:
236916b8568523439d238bd9be346faea44c160c
Thanks!
The text was updated successfully, but these errors were encountered: