These are chat archives for cherrypy/cherrypy

16th
Feb 2019
smoggie84
@smoggie84
Feb 16 20:39
Hi guys, I am using some Python that authenticates me via an API. I keep getting a "500 Internal Server" Error linked to Cherrypy (which is installed). But I don't know what to do. How can I troubleshoot it?
Sviatoslav Sydorenko
@webknjaz
Feb 16 20:40
enable dev mode and check the traceback
or maybe use a debugger, like pudb, or ipdb, or similar
smoggie84
@smoggie84
Feb 16 20:41
I don't get how to read the traceback :-(
Sviatoslav Sydorenko
@webknjaz
Feb 16 20:42
well, then you need to feel this gap in your python education :)
traceback is just pointing out the chain of calls. i.e. from where in function in the chain was called, who called who
with references to exact line numbers in source code so you could go there and follow what was happening
smoggie84
@smoggie84
Feb 16 20:43
Is everything in red an error?
Some 11 lines
Sviatoslav Sydorenko
@webknjaz
Feb 16 20:44
starting with "Traceback"
most likely, you should see some references to files from your own project which should give you some clue on what what happening
smoggie84
@smoggie84
Feb 16 20:51
Yes true it does, I just don't get what they are as they all point to oath2 in my Python installation directory
Sviatoslav Sydorenko
@webknjaz
Feb 16 21:08
that's up to you to figure out