Skip to content

Commit

Permalink
Merge pull request #1435 from IntersectMBO/1422-sentry-exception-warp…
Browse files Browse the repository at this point in the history
…-client-closed-connection-prematurely-while-handling-request

[#1422] silence closed connection error
  • Loading branch information
MSzalowski authored Jun 26, 2024
2 parents 24589ab + 75e7c78 commit fa1c0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ changes.
### Fixed

- silenced `Thread killed by timeout manager` sentry log [Issue 1417](https://github.com/IntersectMBO/govtool/issues/1417)
- silenced `Warp: Client closed connection prematurely` error [Issue 1422](https://github.com/IntersectMBO/govtool/issues/1422)
- backend is now compiled with -threaded [Issue 1148](https://github.com/IntersectMBO/govtool/issues/1148)
- drep/get-voting-power no longer throws 500 for non-existing dreps. Instead it returns 0 [Issue 1093](https://github.com/IntersectMBO/govtool/issues/1093)
- proposal/list no longer throws 500 error when proposal's url is incorrect [Issue 1073](https://github.com/IntersectMBO/govtool/issues/1073)
Expand Down
1 change: 1 addition & 0 deletions govtool/backend/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ exceptionHandler vvaConfig mRequest exception = do
print mRequest
print exception
guard (show exception /= "Thread killed by timeout manager")
guard (show exception /= "Warp: Client closed connection prematurely")
sentryService <-
initRaven
(sentryDSN vvaConfig)
Expand Down

0 comments on commit fa1c0dd

Please sign in to comment.