It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted yesterday in Jira

Upcoming Enterprise releases targeting Q3 2019: Jira Software 8.5 & Jira Service Desk 4.5

Since launching the Jira Software 8.0 and Jira Service Desk 4.0 platform releases in February, many of you have been asking when the next Enterprise release will be so you can take advantage of the m...

272 views 3 6
Join discussion

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