fix(http-client): null-check message
ci/woodpecker/manual/woodpecker Pipeline was successful
Details
ci/woodpecker/manual/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
d72724f1fd
commit
cb2d9bfc65
|
@ -170,7 +170,8 @@ public class HttpClient {
|
|||
} catch (InterruptedException e) {
|
||||
throw new IOException("Could not send request", e);
|
||||
} catch (IOException e) {
|
||||
if (e.getMessage().contains("GOAWAY received")) {
|
||||
String message = e.getMessage();
|
||||
if (message != null && message.contains("GOAWAY received")) {
|
||||
return handleRetryAfter(accept, responseBodyHandler, retryAfterDefault);
|
||||
} else throw new IOException("Could not send request", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue