Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

PATCH without JSON raises a 500 error. #477

Closed
Natim opened this issue Oct 13, 2015 · 1 comment
Closed

PATCH without JSON raises a 500 error. #477

Natim opened this issue Oct 13, 2015 · 1 comment
Assignees

Comments

@Natim
Copy link
Contributor

Natim commented Oct 13, 2015

File "cliquet/resource.py", line 398, in patch
    changes = self.request.json.get('data', {})  # May patch only perms.
  File "webob/request.py", line 725, in _json_body__get
    return json.loads(self.body.decode(self.charset))
ValueError: Expected object or value
@Natim Natim changed the title PATCH without JSON raises an error. PATCH without JSON raises a 500 error. Oct 13, 2015
@leplatrem
Copy link
Contributor

@leplatrem leplatrem self-assigned this Oct 28, 2015
Natim added a commit that referenced this issue Oct 29, 2015
Fix crash with empty body for PATCH (fixes #477, fixes #516)
glasserc pushed a commit that referenced this issue May 20, 2016
Add docs about architecture (fixes #430)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants