Skip to content

Commit

Permalink
Backend: handle error 408 in Eth code
Browse files Browse the repository at this point in the history
Handle HTTP error 408 (request timeout) in Ethereum error
handling code (raise ServerTimedOutException).
  • Loading branch information
webwarrior-ws committed Aug 21, 2024
1 parent a7452c5 commit c88f452
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GWallet.Backend/Ether/EtherServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ module Server =
raise <| ServerTimedOutException(exMsg, httpReqEx)
if HttpRequestExceptionMatchesErrorCode httpReqEx (int CloudFlareError.OriginUnreachable) then
raise <| ServerTimedOutException(exMsg, httpReqEx)
if HttpRequestExceptionMatchesErrorCode httpReqEx (int HttpStatusCode.RequestTimeout) then
raise <| ServerTimedOutException(exMsg, httpReqEx)

if HttpRequestExceptionMatchesErrorCode httpReqEx (int CloudFlareError.OriginSslHandshakeError) then
raise <| ServerChannelNegotiationException(exMsg, CloudFlareError.OriginSslHandshakeError, httpReqEx)
Expand Down

0 comments on commit c88f452

Please sign in to comment.