python - Flask+Apache and 500 Error -


i using flask , apache build website , site , running.

however met strange 500 error: 1 500 error take website down, , site never come online again until restart apache. expect flask+apache can serve next visitor after 500 error, anyway, flask thread local.

assuming following occassion:

@app.route('/<expectsomeinteger>') def hello_world(expectsomeinteger):     anumber = int(expectsomeinteger)     ..... 

obviously code above faulty , should use <int:expectsomeinteger> , stuff. if visitor typed letters in "expectsomeinteger"'s place, flask return 500 error.

the disaster apache send 500 error page visitors after that! can restart apache make work again!

is normal?

i remember when visit php+mysql site, after serious errors, site can serve next visitor normal.

thanks @sasha chedygov , site working fine now.

the problem installed called "mod-python" following linode's library: https://library.linode.com/web-servers/apache/installation/ubuntu-10.04-lucid

after did "apt-get remove libapache2-mod-python", seems fine now.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -