Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1382] ACS Invalid Request error with no log in the managment console

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-02-03T15:07:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
LabelsTCSupportTriage, acs, appcelerator, customobjects, login
ReporterPeter Rockey
AssigneeShuo Liang
Created2014-12-18T10:42:21.000+0000
Updated2016-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

Comments

  1. Peter Rockey 2014-12-22

    It will be great if you can help me on this.
  2. Shuo Liang 2014-12-22

    Please read this doc, it will help you. "User Login Session Management" from this Ref: http://docs.appcelerator.com/cloud/latest/#!/guide/node_acs.

JSON Source