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
While trying to use the REST API to vote on an issue, I got the 415 'Unsupported Media Type' error. The API seems to expect that these requests body are in application/json format, but the requests are instead being sent as application/x-www-form-urlencoded.
Could this be a change from the API or am I missing some config? Other POST calls seem to also expect JSON. Adding the following line to the request config fixes the problem:
While trying to use the REST API to vote on an issue, I got the
415 'Unsupported Media Type'
error. The API seems to expect that these requests body are inapplication/json
format, but the requests are instead being sent asapplication/x-www-form-urlencoded
.Could this be a change from the API or am I missing some config? Other POST calls seem to also expect JSON. Adding the following line to the request config fixes the problem:
https://github.com/lopis/jira.js/blob/master/src/version3/issueVotes.ts#L85
The text was updated successfully, but these errors were encountered: