user.login returns HTML of home page when successful? intended or a configuration

Events happening in the community are now at Drupal community events on www.drupal.org.
cheewe's picture

I'm accessing the user.login service via json server from an iPad application. It appears that when it is successful, the web service returns the HTML of the home page, and when it does not, it returns a valid JSON string that provides the error message.

Is this the expected behavior? Or is it my set-up or configuration somewhere. Thanks!

Comments

Something wrong here !

stonevo's picture

Hi cheewe !
When you use the user.login service. If the username and password is correct it will return the user information data ( in json format if you use the json data for return data, not the html file) and the error data(json also) if the loging is fail.
Do you mind sending the HTML file that you received. We'll find out the problem.

Drupal - The modern Lego game

Related to home page redirect?

cheewe's picture

Using a different way of connecting via drupal-sdk and services 3.x/plist server support, I am getting a HTTP/1.1 302 when it succeeds and Authentication Needed when it fails.

I think it has got to do with these:
http://drupal.org/node/1141356
http://drupal.org/node/493932

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: