+
Skip to content

422 Unprocessable Entity on commit since a few days #128

Closed
@benweet

Description

@benweet

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载