Closed jakul closed 7 years ago
Im having the same issue currently. Im following tutorial at http://code.tutsplus.com/tutorials/building-rest-apis-using-eve--cms-22961
Hello, on which version are you both? On 0.7 I get:
{
"_status": "ERR",
"_error": {
"message": "To edit a document its etag must be provided using the If-Match header",
"code": 428
}
}
0.6.4. 0.7 is unreleased so I can't use it in production
@jakul on which flask version are you? Could it be 0.11? There's a known incompatibility between flask 0.11 and Eve right now (fix coming up, see #945).
Yup, Flask 0.11.4
Can you please try and downgrade flask to 0.10.1 and see if this fixes the issue for you? Eve is currently pinned at 0.10.1 so it should not happen that it installs flask 0.11 on setup.
Should be fixed.
Hiya,
I'm having problems getting (some of) the system-wide error handlers to work properly. My specific problem is that when I try to DELETE a resource without sending an ETag I get the following error:
I am expecting this response:
I am using Flask 0.11.1 and Eve 0.6.4.
Possible solution
I think the cause of the problem is that you are registering the generic error handler to Flask in a way which is discouraged. I think that this code is wrong.
Here's what I think it should be:
Craig.