node-jira icon indicating copy to clipboard operation
node-jira copied to clipboard

Getting a 415 error (Unsupported Media Type)

Open keith9820 opened this issue 11 years ago • 1 comments

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);
});

keith9820 avatar Sep 09 '14 22:09 keith9820

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

keith9820 avatar Sep 09 '14 22:09 keith9820