Skip to content

Commit

Permalink
Backend/Ether: handle HTTP error 410
Browse files Browse the repository at this point in the history
Handle HTTP error 410 (gone) in error handling code
(raise ServerUnavailableException).
  • Loading branch information
webwarrior-ws committed Oct 7, 2024
1 parent c40b129 commit 7c8dcb2
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 @@ -165,6 +165,8 @@ module Server =
raise <| ServerUnavailableException(exMsg, httpReqEx)
if HttpRequestExceptionMatchesErrorCode httpReqEx (int HttpStatusCode.NotFound) then
raise <| ServerUnavailableException(exMsg, httpReqEx)
if HttpRequestExceptionMatchesErrorCode httpReqEx (int HttpStatusCode.Gone) then
raise <| ServerUnavailableException(exMsg, httpReqEx)

// this happened once with ETC (www.ethercluster.com/etc) when trying to broadcast a transaction
// (not sure if it's correct to ignore it but I can't fathom how the tx could be a bad request:
Expand Down

0 comments on commit 7c8dcb2

Please sign in to comment.