Error: Invalid Response from Crowd, expecting json. while authenticating to crowd

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?

1 answer

0 votes

Hey @Fariba javadpour,

 

For development related queries, please do feel free to post your question on our portal below:

https://developer.atlassian.com/community

 

Hope this helps :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

101 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you