node-jira
node-jira copied to clipboard
Getting a 415 error (Unsupported Media Type)
When calling transitionIssue, I get an error "415: Error while updating". Here is the code I'm using:
var jira = new JiraApi('https', config.host, config.port, config.username, config.password, '2');
jira.transitionIssue(issueNum, 'RESOLVED', function(error, statusCode){
console.log('error: ' + error);
console.log('status: ' + statusCode);
});
Is it possible the request is being sent with content-type "application/octet-stream"? I see an error in the log file that that content type is not supported