mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 07:34:31 -06:00
provide better diagnostics for interrupted annotation post
This commit is contained in:
parent
b63fcf2625
commit
1bda5446d5
@ -203,6 +203,8 @@ public class GrafanaClient {
|
||||
try {
|
||||
HttpRequest request = rqb.build();
|
||||
response = client.send(request, HttpResponse.BodyHandlers.ofString());
|
||||
} catch (InterruptedException ie) {
|
||||
logger.warn("The annotation client was interrupted while submitting a request.");
|
||||
} catch (Exception e) {
|
||||
if (e.getMessage()!=null && e.getMessage().contains("WWW-Authenticate header missing")) {
|
||||
throw new RuntimeException("Java HttpClient was not authorized, and it saw no WWW-Authenticate header" +
|
||||
|
Loading…
Reference in New Issue
Block a user