[AC-967] Service not assigning a valid token
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2014-07-04T21:45:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Documentation |
Labels | api |
Reporter | William Diaz |
Assignee | Mauro Parra-Miranda |
Created | 2014-05-17T16:14:14.000+0000 |
Updated | 2016-03-08T07:37:17.000+0000 |
Description
When I ran the app on the console it show the following message: V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token u
Was working fine before the new update.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2014-05-17 at 12.08.24 PM.png | 2014-05-17T16:14:14.000+0000 | 137483 |
Screen Shot 2014-05-18 at 1.27.36 AM.png | 2014-05-18T05:33:49.000+0000 | 76387 |
Screen Shot 2014-05-18 at 1.27.53 AM.png | 2014-05-18T05:33:49.000+0000 | 157586 |
Screen Shot 2014-05-18 at 1.31.48 AM.png | 2014-05-18T05:39:30.000+0000 | 41064 |
Screen Shot 2014-05-18 at 2.44.34 AM.png | 2014-05-18T06:49:51.000+0000 | 82891 |
Screen Shot 2014-05-18 at 3.27.38 AM.png | 2014-05-18T07:28:57.000+0000 | 81854 |
The errors occurs when launch the app: {"code":200,"status":"ok","method_name":"queryCustomObjects","page":1,"per_page":100,"total_pages":0,"total_results":0}} You would notice that returns 200 but the custom objects returns zero results and not token. Thanks in advance for any help my clients can deliver orders to their customers. William
Please provide a test case to reproduce this error. We have not been able to reproduce the issue based on limited information and we are unable to help you due to lack of information.
Tap on the app, the app proceed to login and then make the call to the custom objects and get the following results: { "meta": { "code": 200, "status": "ok", "method_name": "queryCustomObjects", "page": 1, "per_page": 100, "total_pages": 0, "total_results": 0 }, "response": { "settings": [ ] } } Just notice that settings is returning zero entries.
Which app we are tapping on?
The error occurs after the following call. https://api.cloud.appcelerator.com/v1/objects/settings/query.json?key=kf3OWNm418F9zg4Xv0Q01ifIltAFXZDW&page=1&per_page=100&suppress_response_codes=true&ti_analytics={"id":"f931347d-46a4-42a5-9077-291bbc2f2f7c","mid":"caa5858e4c9d7c7f","aguid":"c53185a9-b569-4d95-a644-33f018f64ebe","event":"cloud.objects.settings.query","deploytype":"production","sid":"c2687b39-50ba-45b4-86db-250147bede02"}
I enclosed the screen shots., when I launch the app, the code make the call to the login auth and then after authentication it makes the following call: https://api.cloud.appcelerator.com/v1/objects/settings/query.json?key=kf3OWNm418F9zg4Xv0Q01ifIltAFXZDW&page=1&per_page=100&suppress_response_codes=true&ti_analytics={"id":"f931347d-46a4-42a5-9077-291bbc2f2f7c","mid":"caa5858e4c9d7c7f","aguid":"c53185a9-b569-4d95-a644-33f018f64ebe","event":"cloud.objects.settings.query","deploytype":"test","sid":"c2687b39-50ba-45b4-86db-250147bede02"} The above call return 0 results for settings, see enclosed screen shots. --Thanks
Zero results
Is there anything else I can provide to you guys to take care of this issue seriously and assume responsibilities if any??? Thanks, William Diaz
in your app, there are 4 kinds of custom objects, according to my curl tests, just settings object could not be queried back:
[~williamdiaztv], can you expand the setting object from web console and give me the object id?
The settings object disappeared after the update. That's explains why is not showing the data. The weird thing is that my backend is working fine and is pulling data from settings.
I recreated the object, OMG data loss!!!! That is very concerning how I explain that to my customer???
what is your update operation?
Settings api calls only occurs when launch the app (read no write) and update only happens on the backend when setup the app (one time) for the first time. No doubt the new update deleted my customer data.
Thanks Xuefeng for jumping into this. Finally a great developer from Appcelerator support community took the issue seriously and provided an immediate solution. You should be the next VP of Engineering at Appcelerator. Thanks and now I'm thinking very seriously about running my apps on ACS. Forgot to mention that ACS just pushed down a Mexican Food Franchise with presence on Thailand, Singapore, China and Europe. $$$$$$$ -William
Just in case the app still running but still a indexing problem on your mongo database, Hope you guys don't delete the data again. They are live!
[~williamdiaztv], can you give me your logic of updating your settings object?
Hello William, is this still an issue? Or just a temporal glitch that is already solved? Best, Mauro
No response from the customer.