Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ACS.Users.login API Getting error code 400 with message: 'Invalid request sent.'

$
0
0

Hi All,

I am getting below for while login with ACS APP user Data account. But it not occuring always. It only if I call service multiple time.

error:

{
success: false
error: true
code: 400
message: "Invalid request sent."
}
Code used to login :
ACS.Users.login(userData, function(data){
        if(data.success) {
            console.log("----------Successful to login.---------------");
            console.log(data);
            res.send(data);
            res.end();
 
        } else {
            console.log("------------------login failed---------------");
            console.log(data);
            res.send(data);
            res.end();
        }
    },req, res);
Can some one can help me understand to re-use session id from node.ACS web service app (Not web app)?

What my purpose is to store some data in "custom object". How I can keep session / check session validity before pushing something to custom object?

Thanks

Peter


Viewing all articles
Browse latest Browse all 8068

Trending Articles