appbaseio / appbase-js

appbase.io search client library for JavaScript
MIT License
42 stars 18 forks source link

delete method doesn't invokes on error for unauthorized calls #34

Closed divyanshu013 closed 2 years ago

divyanshu013 commented 6 years ago

When using the delete method with read only credentials, it receives the response with a status of 403 but it invokes the on data call instead of the on error call.

divyanshu013 commented 6 years ago

Same behavior is replicable for update method.