[Flask] wrong response sent to client

ulrich berthold ub at artfacts.net
Fri Sep 23 06:52:23 EDT 2022


On 22.09.22 23:45, Corey Boyle wrote:
> I removed the threads = 4 line from my config, and doubled my 
> processes to 16.
>
> Also added enable-threads = true so that my emailing function would 
> still work.

and doesn't the sentry client require threads to begin with?

cheers,

ub

>
>
> So far so good. Haven't had a single error in Sentry since. (Except 
> the ones I intentionally triggered to make sure it was working.)
>
> I must be using a package that is not thread safe.
> Is there a way to test packages for thread safety?
>
> Also added some JS code using localStorage to my app to tell me if the 
> user switching happens again.
>
> On Tue, Sep 20, 2022, 8:20 AM Nicolas Le Manchet 
> <nicolas at lemanchet.fr> wrote:
>
>     Having a client receive the response from another client usually
>     comes from a caching layer that is not configured properly, for
>     example an HTTP response with an incorrect "Vary" header that gets
>     cached by a CDN and served to the next client.
>
>     As you mentioned, the assertion error may also indicate that
>     something having to do with thread safety is not used properly.
>
>     These kind of problems are notoriously hard to debug, so good luck!
>
>     -- 
>     Nicolas Le Manchet
>     _______________________________________________
>     Flask mailing list
>     Flask at python.org
>     https://mail.python.org/mailman/listinfo/flask
>
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/flask/attachments/20220923/3e063b80/attachment.html>


More information about the Flask mailing list