Skip to content

Commit

Permalink
maximum rawProblem title length 200 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
fsander authored and dehora committed Oct 26, 2022
1 parent 24b5e12 commit ac65e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nakadi-java-client/src/main/java/nakadi/Problem.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static Problem observerProblem(String title, String detail) {
*/
public static Problem rawProblem(int statusCode, String body, String errorDetail) {
return new Problem()
.title(body)
.title(body.substring(0, Math.min(200, body.length())))
.detail(errorDetail)
.data(SENTINEL_MAP)
.status(statusCode)
Expand Down

0 comments on commit ac65e5b

Please sign in to comment.