Skip to content

Commit b6468e8

Browse files
webwarrior-wsknocte
authored andcommitted
Backend/Ether: handle HTTP error 410
Handle HTTP error 410 (gone) in error handling code (raise ServerUnavailableException).
1 parent c40b129 commit b6468e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GWallet.Backend/Ether/EtherServer.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ module Server =
165165
raise <| ServerUnavailableException(exMsg, httpReqEx)
166166
if HttpRequestExceptionMatchesErrorCode httpReqEx (int HttpStatusCode.NotFound) then
167167
raise <| ServerUnavailableException(exMsg, httpReqEx)
168+
if HttpRequestExceptionMatchesErrorCode httpReqEx (int HttpStatusCode.Gone) then
169+
raise <| ServerUnavailableException(exMsg, httpReqEx)
168170

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

0 commit comments

Comments
 (0)