IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://sanchogov.tools/
Apache License 2.0
8 stars 2 forks source link

[Sentry] Exception Warp: Client closed connection prematurely while handling request #1422

Open MSzalowski opened 2 weeks ago

MSzalowski commented 2 weeks ago

Context & versions

Steps to reproduce

  1. Fetch /proposal/list
  2. Sometimes the client closes connection

Actual behavior

Sometimes the client closes connection. Sentry log

Expected behavior

Exception should be handled and fixed

MSzalowski commented 1 week ago

I decided to temporarily disable the reporting of this error in order not to exceed the sentry limit. Warp is a haskell web-server. In its case, we have the user's entire request available, meaning that he or she has submitted his or her data, but there is a chance that the user interrupts operations at this stage, resulting in the above exception being thrown. This also only happens with a significant load during stress-testing.

I'll keep this issue as open and on To do to provide the solution instead of the workaround for reporting.