Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: delete:{ ... request.body ... } #91

Open
pitervergara opened this issue Mar 31, 2015 · 1 comment
Open

AssertionError: delete:{ ... request.body ... } #91

pitervergara opened this issue Mar 31, 2015 · 1 comment

Comments

@pitervergara
Copy link

I'am getting an AssertionError on DELETE calls. Looks like tastypie-mongoengine expects that delete requests has no request.body. This stack overflow discussion sugests that this is not mandatory.
I'm using restangular, so I managed to avoid the error by means of this comment, but I suppose it worth to register...
If I use 'pure tastypie' (with sqlite) the same DELETE requests work (I've just test it to be sure)

The stacktrace is:
File ".../lib/python2.7/site-packages/tastypie_mongoengine/resources.py", line 428, in dispatch
assert the_method in ('put', 'post', 'patch'), the_method + ":" + request.body

@mgoffin
Copy link

mgoffin commented Apr 16, 2015

I am seeing the same problem all of the sudden for POST and PATCH.

http://stackoverflow.com/questions/29681579/django-tastypie-and-django-tastypie-mongoengine-patch-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants