<div dir="ltr">Hi Piotr,<div><br></div><div>take a look at <a href="https://docs.sentry.io/clients/python/integrations/flask/">https://docs.sentry.io/clients/python/integrations/flask/</a> . It's rock solid service for tracking 500 responses from python web applications. I think you will easily detect queries that breaks your app.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 7:32 PM, Piotr Grabowski <span dir="ltr"><<a href="mailto:kajocina@gmail.com" target="_blank">kajocina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I have a Flask application that is visualizing data based on queries that users make in a text form on the website. There is only a finite number of queries that can be made (~15.000). However, for technical reasons some queries sometimes fail, e.g. when a user misspells a query.</div><div><br></div><div>In most cases everything is handled well but I do occasionally see some fringe cases that break the app and the users get a white screen.</div><div><br></div><div>My question: is there some simple solution that could help me iterate over the list of possible queries (that I have) to check if they ever break the app? I can imagine that a bash script could do this and just list all cases which didn't return 200/OK from the server, but maybe there is a nicer way to do it?</div><div><br></div><div>I already looked at <a href="http://flask.pocoo.org/docs/0.12/testing/" target="_blank">http://flask.pocoo.org/<wbr>docs/0.12/testing/</a> but have no experience with this and need some quick fix before I learn how to write proper Flask unit tests...</div><div><br></div><div>I'll be thankful for any tips!</div><div><br></div><div>Best,</div><div>Piotr</div></div>
<br>______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/flask</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Если есть трудное дело, поручите его лентяю: он найдет более легкое решение.</div>
</div>