[AC-1382] ACS Invalid Request error with no log in the managment console
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2015-02-03T15:07:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | TCSupportTriage, acs, appcelerator, customobjects, login |
Reporter | Peter Rockey |
Assignee | Shuo Liang |
Created | 2014-12-18T10:42:21.000+0000 |
Updated | 2016-03-08T07:37:48.000+0000 |
Description
I am trying to store some data on Custom Object of Appcelerator ACS. So there will be a service to do that. Each time it require authentication to create a new object
But I am sometime getting below error while login with ACS. But it not occuring always. It only if I call service multiple time.
error i am getting is:
{ 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 to understand how to re-use session id from node.ACS web service app (Not web app)?
How I can keep session / check session validity before pushing something to custom object? Has anyone faced similar issue?
Thanks
Peter
It will be great if you can help me on this.
Please read this doc, it will help you. "User Login Session Management" from this Ref: http://docs.appcelerator.com/cloud/latest/#!/guide/node_acs.