Skip to content
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

500 Internal Server Error on search #270

Open
DavidAdams opened this issue Aug 11, 2018 · 2 comments
Open

500 Internal Server Error on search #270

DavidAdams opened this issue Aug 11, 2018 · 2 comments

Comments

@DavidAdams
Copy link

** Commit: 1908318
** Operating System: Synology Linux
** Python Version [python -V]: 3.5
** What happened: Attempted forced search, received red pop up box with "500 Internal Server Error"
** Logs:

INFO [2018-08-10 21:17:12,855] cherrypy.error.140713571041120.error.219: [10/Aug/2018:21:17:12] HTTP 
UnboundLocalError: local variable 'movie_details' referenced before assignment
quality_profile = movie_details['quality']
File "/path/to/Watcher3/core/searchresults.py", line 54, in score
scored_results = searchresults.score(results, imdbid=imdbid)
File "/path/to/Watcher3/core/searcher.py", line 152, in search
success = searcher.search(imdbid, movie['title'], movie['year'], movie['quality'])
File "/path/to/Watcher3/core/ajax.py", line 227, in search
return self.callable(*self.args, **self.kwargs)
File "/path/to/Watcher3/lib/cherrypy/_cpdispatch.py", line 60, in __call__
value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
File "/path/to/Watcher3/lib/cherrypy/lib/jsontools.py", line 61, in json_handler
self.body = self.oldhandler(*args, **kwargs)
File "/path/to/Watcher3/lib/cherrypy/lib/encoding.py", line 220, in __call__
response.body = self.handler()
File "/path/to/Watcher3/lib/cherrypy/_cprequest.py", line 670, in respond
Traceback (most recent call last):
ERROR [2018-08-10 21:17:12,307] cherrypy.error.140713571041120.error.219: [10/Aug/2018:21:17:12] HTTP 
INFO [2018-08-10 21:17:12,306] core.searchresults.score.38: Scoring 6 releases.
@Dammi87
Copy link

Dammi87 commented Aug 11, 2018

Had the same problem, apparently some restructure of the code was made in the latest commit.
I reverted to the previous one
git checkout 4789bdaaf57fda1282083927e5bdf984a2541a95

nosmokingbandit added a commit that referenced this issue Aug 13, 2018
I blame my linter for not showing an error. I blame anyone except me.
@nosmokingbandit
Copy link
Owner

nosmokingbandit commented Aug 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants