-
Notifications
You must be signed in to change notification settings - Fork 10
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
HTTP 406 Not Acceptable on ExternalTaskApi.getExternalTaskErrorDetails() #75
Comments
Snippet from generated public String selectHeaderAccept(String[] accepts) {
if (accepts.length == 0) {
return null;
}
for (String accept : accepts) {
if (isJsonMime(accept)) {
return accept;
}
}
return StringUtil.join(accepts, ",");
} Snippet from generated final String[] localVarAccepts = {
"text/plain", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); Note that this results in |
Temporary local workaround is to patch this generated file, either by editing or overriding this method. final String[] localVarAccepts = {
"text/plain", "application/json"
};
final String localVarAccept = StringUtil.join(localVarAccepts, ","); |
Alternatives for permanent fix, top of my head:
|
Found this open issue which is spot on. |
Requests to ExternalTaskApi.getExternalTaskErrorDetails(externalTaskId) fail with HTTP 406 Not Acceptable due to accept header value incorrectly listing only "application/json". Correct value is "application/json, text/plain".
The text was updated successfully, but these errors were encountered: