You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the generated api client (e.g. python client) selects application/json as Accept header. but the API server accepts application/octet-stream. (the API server returns application/json only in case of 500 error.)
So the request from the API client is always result as 406 Not accepted.
Description
Related issue: #440
In the case below:
the generated api client (e.g. python client) selects
application/json
as Accept header. but the API server acceptsapplication/octet-stream
. (the API server returnsapplication/json
only in case of 500 error.)So the request from the API client is always result as
406 Not accepted
.openapi-generator version
latest master
Related issues/PRs
#440
Suggest a fix/enhancement
Use Quality values in "Accept" request header instead of removing all media types except
application/json
.application/json
is set always default value (1
)q=0.9
This suggestion keeps the priority that api client needs and avoid the error described above.
The text was updated successfully, but these errors were encountered: