When submitting a new article, I was testing to post only an attachment. The error message "Error: object must have a content" came after the request was processed by the server...
It would likely be better to check the required fields before submitting the publish request to the server, right?