Skip to content

Commit

Permalink
Limited retries of all 400 errors (#353)
Browse files Browse the repository at this point in the history
This is to catch a transient 400 error that we are seeing sometimes.
[This is a workaround in lieu of a complete analysis and fix.
Merged so that we can build the QoB JAR via the hail deploy. -JM]
  • Loading branch information
dancoates authored Dec 10, 2024
1 parent dcea9e9 commit a1a628b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hail/src/main/scala/is/hail/services/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ package object services {
) || e.getMessage.contains("Unexpected end of file")) =>
true
case e: HttpResponseException
if e.getStatusCode() == 400 && e.getMessage != null && (
e.getMessage.contains("Invalid grant: account not found") ||
e.getMessage.contains("{\"error\":\"unhandled_canonical_code_14\"}")
) =>
if e.getStatusCode() == 400 =>
true
case e: IOException
if e.getMessage != null && e.getMessage.contains("Connection reset by peer") =>
Expand Down

0 comments on commit a1a628b

Please sign in to comment.