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

skyredwang’s picture

Priority: Normal » Minor

The 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.

skyredwang’s picture

Title: user.logout output is confusing » Error messages are confusing

Here is another confusing msg { "#error": false, "#data": { "#error": true, "#message": "Missing required arguments."} }

True or False?

skyredwang’s picture

Category: bug » support

change to support request. basically, we need documentation to explain what does the first true/false mean, the second true/false mean.....and so on

kylebrowning’s picture

Project: Services » JSON server

First, 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.

skyredwang’s picture

Status: Active » Closed (won't fix)