sailsjs-angularjs-bootstrap-example icon indicating copy to clipboard operation
sailsjs-angularjs-bootstrap-example copied to clipboard

Inconsistent behavior with REST 403/500 errors

Open cgmartin opened this issue 11 years ago • 1 comments

Seeing odd behavior in Sails v0.9.8 when throwing 500 application errors, and when 403 forbidden errors are triggered from policy configurations where a controller/action is false. The results are not consistent between Socket and HTTP modes. More research is needed.

To reproduce,

  1. Visit http://localhost:1337/rest-examples.
  2. Click the HTTP and Socket buttons for 403: Forbidden and 500: Internal Server Error
  3. Compare the results.

cgmartin avatar Jan 10 '14 03:01 cgmartin

Fixed the inconsistency in 500 errors with commit https://github.com/cgmartin/sailsjs-angularjs-bootstrap-example/commit/60d63213dc91c00d7d4b1aae339e2aac9984d705 but 403 errors are still an issue.

cgmartin avatar May 05 '14 20:05 cgmartin