Skip to content

500 Internal Server Error on search #270

Open
@DavidAdams

Description

@DavidAdams

** 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions