Closed (won't fix)
Project:
JSON server
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2010 at 20:59 UTC
Updated:
21 Sep 2011 at 15:57 UTC
user.logout returns { "#error": false, "#data": { "#error": true, "#message": { "#error": true, "#message": "Access denied." } } }
Please notice the first #error says "false", but the second #error says "true"
Comments
Comment #1
skyredwangThe error is because user.logout permission is not assigned to the key. This is not really a bug. However, the error msg is still confusing, and need to be improved for debugging purpose.
Comment #2
skyredwangHere is another confusing msg
{ "#error": false, "#data": { "#error": true, "#message": "Missing required arguments."} }True or False?
Comment #3
skyredwangchange to support request. basically, we need documentation to explain what does the first true/false mean, the second true/false mean.....and so on
Comment #4
kylebrowning commentedFirst, this is a JSON Server issue not a services issue.
JSON Server should choose a better way to return the erroneous information.
Second, this is fixed in 3.x as we handle this with HTTP Status Codes.
Comment #5
skyredwang