librelist archives

« back to archive

diagnosing http server 500 error

diagnosing http server 500 error

From:
Norbert Markowicz
Date:
2013-03-02 @ 02:41
Hi guys,

I'm having trouble with my instance of flask throwing Internal server
errors 500 errors. I have app.debug = True activated, but how can I see
what actual line in the python code caused this this error to be generated.

Thanks

Re: [flask] diagnosing http server 500 error

From:
Nguyễn Hồng Quân
Date:
2013-03-02 @ 04:54
2013/3/2 Norbert Markowicz <norbert.markowicz@gmail.com>

> Hi guys,
>
> I'm having trouble with my instance of flask throwing Internal server
> errors 500 errors. I have app.debug = True activated, but how can I see
> what actual line in the python code caused this this error to be generated.
>
> Thanks
>

Are you running in Apache? See Apache error.log file.
Under Ubuntu, it is in /var/log/apache2

-- 
***********************************************
* Nguyễn Hồng Quân                            *
* Y!M: ng_hquan_vn                            *
* Identi.ca: hongquan                         *
***********************************************

Re: [flask] diagnosing http server 500 error

From:
Markus Unterwaditzer
Date:
2013-03-02 @ 06:31
Norbert Markowicz <norbert.markowicz@gmail.com> wrote:

>Hi guys,
>
>I'm having trouble with my instance of flask throwing Internal server
>errors 500 errors. I have app.debug = True activated, but how can I see
>what actual line in the python code caused this this error to be
>generated.
>
>Thanks

How are you launching your app? Using app.debug = True; app.run() *should*
get you in the interactive debugger when a 500 occurs.

-- Markus (from phone)