-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(java): use body as error message APIC-541 #734
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice!
sorry I missed a null check |
@@ -59,7 +59,7 @@ public Response intercept(Chain chain) throws IOException { | |||
continue; | |||
} | |||
String message = response.message(); | |||
if (response.body()) { | |||
if (response.body() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL my noob self did not knew the short check did not worked 😮💨
algolia/api-clients-automation#734 Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
🧭 What and Why
🎟 JIRA Ticket: APIC-541
The message of an error response was just
Forbidden
orBad request
but we can get more detail through the body if there is one.Changes included:
🧪 Test
Try the playground with the search api key to get an error.