Skip to content

Commit

Permalink
Fix IOException should be managed by a HTTP retry policy
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Aug 31, 2023
1 parent 7fd2d84 commit 383e5e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/groovy/io/seqera/wave/proxy/ProxyClient.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ class ProxyClient {
traceResponse(response)
return response
}
catch (IOException e) {
// just re-throw it so that it's managed by the retry policy
throw e
}
catch (Exception e) {
throw new InternalServerException("Unexpected error on HTTP GET request '$uri'", e)
}
Expand Down

0 comments on commit 383e5e9

Please sign in to comment.