500 Internal Server Error

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
benny21077
Posts: 3
Joined: Sat Dec 12, 2015 9:24 am

500 Internal Server Error

Post by benny21077 »

Hi,

I have set Mylar up and everysthing seems to be properly configured, including the CV API Key. However, when I seach for anything or try to add a series I get the following error message:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "c:\Mylar\cherrypy\_cprequest.py", line 645, in respond
response.body = self.handler()
File "c:\Mylar\cherrypy\lib\encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "c:\Mylar\cherrypy\_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "c:\Mylar\mylar\webserve.py", line 207, in searchit
searchresults, explicit = mb.findComic(name, mode, issue=None, explicit=explicit)
File "c:\Mylar\mylar\mb.py", line 132, in findComic
searched = pullsearch(comicapi, comicquery, 0, explicit, type)
File "c:\Mylar\mylar\mb.py", line 73, in pullsearch
file = urllib2.urlopen(PULLURL)
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "C:\Python27\lib\httplib.py", line 1136, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 417, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''

I am running Mylar on Windows 10 with the following Config:

Mylar Version: development
-- git build efe447f5170dfcea873b5da735c2fd66d2fe9936.
Python Version : 2.7.11

MYLAR PROGRAM OPTIONS Mylar Data Directory : c:\Mylar
Mylar Program Directory : c:\Mylar
Mylar Cache Directory : c:\Mylar\cache
Mylar Config File :c:\Mylar\config.ini

Hope anyone can help.
Thanks
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: 500 Internal Server Error

Post by evilhero »

I think that might be due to you hitting the cv api rate limit and it returning an invalid status code (420).

Can you browse to comicvine.com or comicvine.com/api and see if you get an error (on the same machine that mylar is running on)?

Did you run mylar previously and started getting sone errors and then upgraded mylar? (Just a wild guess, I haven't a clue if that's true or not)
benny21077
Posts: 3
Joined: Sat Dec 12, 2015 9:24 am

Re: 500 Internal Server Error

Post by benny21077 »

Thanks.

There seems to be no issue with Comicvine. When I go to the CV/Api section it says: You have no current rate limits. Go forth and query.

It did not work from the bginning. I set up the whole system, but was not able to run one single search or add one series. Each time it is the 500 Internal Server Error Message.
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: 500 Internal Server Error

Post by evilhero »

When you entered in all of your information into the configuration - have you saved the configuration and restarted Mylar since? Have you restarted Mylar at all since you the error and made sure that your configuration is correct? If you are editing the config.ini, Mylar can't be running - if you're making configuration changes within the GUI, after you've done your changes, it's best practice to save the configuration and then do a Restart of Mylar from the GUI so that Mylar can properly load in all the correct values.
benny21077
Posts: 3
Joined: Sat Dec 12, 2015 9:24 am

Re: 500 Internal Server Error

Post by benny21077 »

Sure. I rebooted the PC several times as well as Mylar. All changes are saved. After the restart, same Problem: 500 internal Server error. It Shows the weekly list, but when I add a series: 500 internal Server error, no matter what series I choose.
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: 500 Internal Server Error

Post by evilhero »

Sorry, just getting back into the swing of things due to the Holidays being over (needed a rest)...

Is this still occuring for you?

Are you running Mylar through another app (like a docker or something)?

How did you install mylar - via source / git ?

Do you have a Comic Location set within the Mylar GUI that exists and is writeable/accessible ?
Post Reply