500 Internal Server Error

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Ghozt
Posts: 29
Joined: Wed Dec 25, 2013 4:38 am

500 Internal Server Error

Post by Ghozt »

Getting 500 Internal Server Error when loading "Wanted" or "This Week"

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

Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\site-packages\cherrypy\_cprequest.py", line 659, in respond
self._do_respond(path_info)
File "C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\site-packages\cherrypy\_cprequest.py", line 718, in _do_respond
response.body = self.handler()
^^^^^^^^^^^^^^
File "C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\site-packages\cherrypy\lib\encoding.py", line 223, in __call__
self.body = self.oldhandler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\AppData\Local\Programs\Python\Python311\Lib\site-packages\cherrypy\_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\Downloads\mylar3-master\mylar\webserve.py", line 2925, in pullist
weekinfo = helpers.weekly_info(week, year, current)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\Downloads\mylar3-master\mylar\helpers.py", line 3164, in weekly_info
startweek = stweek + timedelta(weeks = weeknumber)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported type for timedelta weeks component: str


Any help with this is very much appreciated! Thanks in advance!
User avatar
bull3t
Posts: 9
Joined: Tue Oct 31, 2023 7:58 pm
Location: Russia
Contact:

Re: 500 Internal Server Error

Post by bull3t »

The same problem.
Image
TheHYPO
Posts: 10
Joined: Tue Nov 28, 2023 11:09 pm

Re: 500 Internal Server Error

Post by TheHYPO »

Basically the same problem here, but only once I click the "next" arrow (right) past Week 2 on the "This Week" page. I don't have the issue (that I have run into yet) on the Wanted page.

Different file paths (linux/docker) and line numbers, but mine doesn't have the line about weekinfo or weekly_info. Instead I have weeklyresults:

Code: Select all

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

Traceback (most recent call last):
  File "/lsiopy/lib/python3.10/site-packages/cherrypy/_cprequest.py", line 659, in respond
    self._do_respond(path_info)
  File "/lsiopy/lib/python3.10/site-packages/cherrypy/_cprequest.py", line 718, in _do_respond
    response.body = self.handler()
  File "/lsiopy/lib/python3.10/site-packages/cherrypy/lib/encoding.py", line 223, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/lsiopy/lib/python3.10/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/app/mylar3/mylar/webserve.py", line 3112, in pullist
    weeklyresults = sorted(weeklyresults, key=itemgetter('PUBLISHER', 'COMIC'), reverse=False)
TypeError: '<' not supported between instances of 'NoneType' and 'str'
TheHYPO
Posts: 10
Joined: Tue Nov 28, 2023 11:09 pm

Re: 500 Internal Server Error

Post by TheHYPO »

Followup - I restarted Mylar and the error is no longer occurring (for now).
Ghozt
Posts: 29
Joined: Wed Dec 25, 2013 4:38 am

Re: 500 Internal Server Error

Post by Ghozt »

Restart didn't seem to help. Still getting the same error. Maybe it has something to do with a specific comic or issue number on the pull list for that specific week. Hoping that it goes away after this week, or that a solution is found. Thanks for the info and the help.
Post Reply