You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an API client sends an invalid request to the API server, the server should return a 4xx response rather than a 5xx response.
The dispatch() method on MongoEngineResource raises AssertionError when testing the request method. If dispatch() was to raise tastypie_exceptions.BadRequest rather than AssertionError, then tastypie will return an HTTP 400 to the client rather than an HTTP 500.
In the 0.4.2 version of tastypie_mongoengine, the AssertionError exceptions are raised in the following places:
tastypie_mongoengine/resources.py:373
tastypie_mongoengine/resources.py:376
The text was updated successfully, but these errors were encountered:
If an API client sends an invalid request to the API server, the server should return a 4xx response rather than a 5xx response.
The dispatch() method on MongoEngineResource raises AssertionError when testing the request method. If dispatch() was to raise tastypie_exceptions.BadRequest rather than AssertionError, then tastypie will return an HTTP 400 to the client rather than an HTTP 500.
In the 0.4.2 version of tastypie_mongoengine, the AssertionError exceptions are raised in the following places:
tastypie_mongoengine/resources.py:373
tastypie_mongoengine/resources.py:376
The text was updated successfully, but these errors were encountered: