Closed Zhanweelee closed 5 years ago
Try to patch a data, it returns error
PATCH /users/user01 { "balance": "123" }
2018-12-04 13:50:13,269 INFO: [models.py:100] [MainProcess:2210 uWSGIWorker8Core0] Traceback (most recent call last): File "/home/xxx/.local/lib/python2.7/site-packages/eve/flaskapp.py", line 1105, in __call__ return super(Eve, self).__call__(environ, start_response) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/home/xxx/.local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/home/xxx/.local/lib/python2.7/site-packages/eve/endpoints.py", line 96, in item_endpoint response = patch(resource, **lookup) File "/home/xxx/.local/lib/python2.7/site-packages/eve/methods/common.py", line 317, in rate_limited return f(*args, **kwargs) File "/home/xxx/.local/lib/python2.7/site-packages/eve/auth.py", line 80, in decorated return f(*args, **kwargs) File "/home/xxx/.local/lib/python2.7/site-packages/eve/methods/common.py", line 1251, in decorated r = f(resource, **combined_args) File "/home/xxx/.local/lib/python2.7/site-packages/eve/methods/patch.py", line 53, in patch resource, payload, concurrency_check=True, skip_validation=False, **lookup File "/home/xxx/.local/lib/python2.7/site-packages/eve/methods/patch.py", line 148, in patch_internal original = get_document(resource, concurrency_check, **lookup) File "/home/xxx/.local/lib/python2.7/site-packages/eve/methods/common.py", line 88, in get_document resource, req, check_auth_value, force_auth_field_projection, **lookup TypeError: find_one() takes exactly 3 arguments (6 given)
Eve-SQLAlchemy 0.7 is not compatible with Eve 0.8. pip check should return an error in that case and should pin Eve to <0.8 in your setup.py.
pip check
<0.8
setup.py
Please reopen if you have any further questions!
Try to patch a data, it returns error
Actual Behavior
Environment