It seems in case of error by send event that HttpEventCollectorSender will instantiate a ServerErrorException: HttpEventCollectorErrorHandler.error(events, new ServerErrorException(ex.getMessage())); And ServerErrorException try to parse the message as JSON (!): public ServerErrorException(String serverReply) {
this.reply = serverReply;
try {
JsonObject json = JsonParser.parseString(serverReply).getAsJsonObject();
this.errorCode = json.get("code").getAsLong();
this.errorText = json.get("text").getAsString();
} catch (Exception var3) {
this.errorText = var3.getMessage();
}
} So this error is not the original error.
... View more