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
Community showcase
Posted in Jira

The Jira Server Mobile App is here!

Hey Community! My name is James and I am a product manager on the Server Mobile team. I am excited to announce the new Jira Server Mobile apps for both iPhone and Android are now available. This is...

40 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you