{ "id": "141858", "key": "AC-1382", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-02-03T15:07:25.000+0000", "created": "2014-12-18T10:42:21.000+0000", "labels": [ "TCSupportTriage", "acs", "appcelerator", "customobjects", "login" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "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\r\n\r\nBut I am sometime getting below error while login with ACS. But it not occuring always. It only if I call service multiple time.\r\n\r\nerror i am getting is:\r\n\r\n{ success: false, error: true, code: 400, message: \"Invalid request sent.\" }\r\n\r\nCode used to login :\r\n\r\nACS.Users.login(userData, function(data){\r\n if(data.success) {\r\n console.log(\"----------Successful to login.---------------\");\r\n console.log(data);\r\n res.send(data);\r\n res.end();\r\n\r\n } else {\r\n console.log(\"------------------login failed---------------\");\r\n console.log(data);\r\n res.send(data);\r\n res.end();\r\n }\r\n},req, res);\r\nCan some one can help me to understand how to re-use session id from node.ACS web service app (Not web app)?\r\n\r\nHow I can keep session / check session validity before pushing something to custom object? Has anyone faced similar issue?\r\n\r\nThanks\r\n Peter", "attachment": [], "flagged": false, "summary": "ACS Invalid Request error with no log in the managment console", "creator": { "name": "peterkr", "key": "peterkr", "displayName": "Peter Rockey", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "peterkr", "key": "peterkr", "displayName": "Peter Rockey", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Development", "comment": { "comments": [ { "id": "337281", "author": { "name": "peterkr", "key": "peterkr", "displayName": "Peter Rockey", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It will be great if you can help me on this.", "updateAuthor": { "name": "peterkr", "key": "peterkr", "displayName": "Peter Rockey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T05:58:35.000+0000", "updated": "2014-12-22T05:58:35.000+0000" }, { "id": "337289", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Please read this doc, it will help you.\r\n\r\n\"User Login Session Management\" from this Ref: http://docs.appcelerator.com/cloud/latest/#!/guide/node_acs.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-22T07:03:13.000+0000", "updated": "2014-12-22T07:03:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }