Skip to content

Commit

Permalink
Enhance jsonparser logging with content of the unexpected token. This…
Browse files Browse the repository at this point in the history
… would

greatly help tracing to the root of error in case istio proxy return unexpected
error messages during meeting connection issues.
  • Loading branch information
Kai Sun committed Oct 16, 2023
1 parent 0a27a7a commit aaf01af
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ private void init()
} else if (nextToken == JsonToken.START_OBJECT) {
throw convertException(jp.getCodec().readValue(jp, QueryException.class));
} else {
if (nextToken == JsonToken.VALUE_STRING) {
LOG.error(
"Next Token value is of type VALUE_STRING with content [%s], not as expected START_ARRAY",
jp.getText()
);
}
throw convertException(
new IAE("Next token wasn't a START_ARRAY, was[%s] from url[%s]", jp.getCurrentToken(), url)
);
Expand Down

0 comments on commit aaf01af

Please sign in to comment.