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 error body is returned, the response body must be encoded as a [JSON] object and include at least a single property named error with the value set to one of the below:
Such an error can be forced by making the content POST parameter an array:
Conform to the spec by sending out JSON error responses:
- When the access token is invalid
- When some error occurs, e.g. a post could not be saved
The micropub endpoint now also sends out a HTTP 500 status code
by default unless that's overriden later.
This helps when something crashes during processing.
Resolves: #1506
While trying to do this:
Send an invalid micropub request to create a new post
I encountered this error:
Server responded with a status code of 500 and plain-text error message "Couldn't create note"
Some other notes:
The micropub draft specification section 3.8 Error Response states:
Such an error can be forced by making the
content
POST parameter an array:The text was updated successfully, but these errors were encountered: