Closed
Description
The following error appears with status code 422 on https://stackedit.io since a few days when trying to publish a document to GitHub:
{
"message": "Invalid request.\n\nMissing required keys \"email, name\" in object; keys are \"\".",
"documentation_url": "https://developer.github.com/v3/git/commits/#create-a-commit"
}
After investigation it looks like the body of the POST request:
{"message":"Published with https://stackedit.io/","author":{},"parents":["91750c60b4e765c98b459277e578ea21ebfb132c"],"tree":"17436ce8a13e00a2745680441ae6269a573ebfa7"}
has to be turned into:
{"message":"Published with https://stackedit.io/","parents":["91750c60b4e765c98b459277e578ea21ebfb132c"],"tree":"17436ce8a13e00a2745680441ae6269a573ebfa7"}
ie, get rid of the empty author
parameter. This has been confirmed by the GitHub team.
PR is on its way..
Metadata
Metadata
Assignees
Labels
No labels