I’m new in crowd and I have some codes to connect to crowd via a node package:
var CrowdClient = require(‘atlassian-crowd-client’);
var crowd = new CrowdClient({
baseUrl: ‘http://myhost/crowd/console/login.action’,
application: { name: ‘app’, password: ‘password’ }
});
module.exports = {
show: function (req, res) {crowd.session.create(‘my-username’, ‘my-password’).then(function (session) { console.log('Crowd SSO token is ’ + session.token); }); }
};
but it returns Error: Invalid Response from Crowd, expecting JSON error! what should I do?