Have generated a token with the curl call and tried authenticating via both the OSX keychain and settings file methods, as well as removing/reinstalling via both Package Control and directly from GitHub.
All attempts to create a new gist end with the error message "Gist: GitHub returned error 422: Validation Failed"
Has anyone run into this issue before?
Able to replicate when attempting to save a gist with no content. This was coming up because my workflow was such that I saved/named the gist before adding any content, so it was tossing an "unprocessable entity" error as all the necessary fields weren't filled.
Right behavior, just a vague error message—will submit a patch with a more descriptive one.
Added error message about empty content of the file. GitHub API not allow to create files with empty content.
@condemil Aaaaand I never submitted that patch. Thanks for the fix!