rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.35k stars 603 forks source link

500 Internal Server Error #3259

Open jacekglebocki opened 3 years ago

jacekglebocki commented 3 years ago

It just appeared. I tried restarting, didnt help.

`500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "lib/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "lib/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "lib/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/QHeadPhones/headphones-master/headphones/webserve.py", line 70, in home
    artists = myDB.select('SELECT * from artists order by ArtistSortName COLLATE NOCASE')
  File "/share/CACHEDEV1_DATA/.qpkg/QHeadPhones/headphones-master/headphones/db.py", line 83, in select
    sqlResults = self.action(query, args).fetchall()
OperationalError: Could not decode to UTF-8 column 'MetaCritic' with text '5dc10f9f-cae4-47c8-84c3-346d948e9b8a'
Powered by CherryPy 3.6.0`
Mister-42 commented 3 years ago

Got a similar error, but on a different action (choose specific download).

Traceback (most recent call last):
  File "lib/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "lib/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "lib/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/opt/headphones/headphones/webserve.py", line 442, in choose_specific_download
    results = searcher.searchforalbum(AlbumID, choose_specific_download=True)
  File "/opt/headphones/headphones/searcher.py", line 232, in searchforalbum
    results = do_sorted_search(album, new, losslessOnly, choose_specific_download=True)
  File "/opt/headphones/headphones/searcher.py", line 313, in do_sorted_search
    choose_specific_download)
  File "/opt/headphones/headphones/searcher.py", line 1570, in searchTorrent
    releasetype=album_type)['results'])
  File "lib/pygazelle/api.py", line 382, in search_torrents
    response = self.request(action='browse', **kwargs)
  File "lib/pygazelle/api.py", line 143, in request
    raise e
RequestException
rembo10 commented 2 years ago

I think (hope is maybe a better word) all this stuff is sorted in the develop branch, which now runs on python 3. Strings now default to unicode, and the encoding to utf-8 all happens with cherrypy itself.

raymondjstone commented 2 years ago

Is the db structure compatible with the master branch? if so I can maybe switch and run for a while to help test.

rembo10 commented 2 years ago

That would be really very much appreciated! There haven't been any changes to the db schema itself, but you can back up the db and config just in case because it's a pretty big change and there may have been some things I've missed