pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
263 stars 79 forks source link

Checking Provider Configuration infinite loop for sites with restricted/limited API access #99

Open tifoji opened 10 years ago

tifoji commented 10 years ago

The "Please Wait, checking provider configuration" window never closes and the log has the following.

2013-12-03 12:20:39,795 - TERMINAL_ERR - ERROR - 127.7.74.1 - - [03/Dec/2013 12:20:39] "GET /config HTTP/1.1" 200 70008 2013-12-03 12:23:25,169 - SearchModule - INFO - TS http://examplennsite.com 9.72490596771 2013-12-03 12:23:25,170 - TERMINAL - INFO - junk after document element: line 1, column 32 2013-12-03 12:23:25,171 - mega2 - ERROR - Exception on /serverchk [GET] Traceback (most recent call last): File "wsgi/usntssearch/NZBmegasearch/flask/app.py", line 1700, in wsgi_app response = self.full_dispatch_request() File "wsgi/usntssearch/NZBmegasearch/flask/app.py", line 1373, in full_dispatch_request rv = self.handle_user_exception(e) File "wsgi/usntssearch/NZBmegasearch/flask/app.py", line 1371, in full_dispatch_request rv = self.dispatch_request() File "wsgi/usntssearch/NZBmegasearch/flask/app.py", line 1357, in dispatch_request return self.view_functionsrule.endpoint File "wsgi/usntssearch/NZBmegasearch/mega2.py", line 250, in serverchk return jsonify(code=testserver.check(request.args)) File "wsgi/usntssearch/NZBmegasearch/miscdefs.py", line 301, in check print cfg_tmp['retcode'] KeyError: 'retcode' 2013-12-03 12:23:25,174 - TERMINAL_ERR - ERROR - 127.7.74.1 - - [03/Dec/2013 12:23:25] "GET /serverchk?hostname=http%3A%2F%2Fexamplennsite.com&api=notmyactualapi&user=&pwd=&type=NAB HTTP/1.1" 500 291

I get this on couple of sites where I have not donated.

pillone commented 10 years ago

thanks for the bugreport. I look into this.