github-tools / github

A higher-level wrapper around the Github API. Intended for the browser.
BSD 3-Clause "New" or "Revised" License
3.59k stars 755 forks source link

Error 422 by posting a new tree #533

Open Hermios opened 5 years ago

Hermios commented 5 years ago

Hi I am having an issue by posting a new tree on my Github. I wonder if it is my json file: {"tree": [{ "path": "graphics", "mode": "040000", "type": "tree" }, { "path": "locale", "mode": "040000", "type": "tree" }, { "path": "methods", "mode": "040000", "type": "tree" }, { "path": "migrations", "mode": "040000", "type": "tree" }, { "path": "prototypes", "mode": "040000", "type": "tree" }]} , the url I use: https://api.github.com/repos/MyName/MyRepos/git/trees So, I have this (422) Unprocessable Entity issue, and no further info. Can you help? Many thanks Niko

j-rewerts commented 5 years ago

@Hermios Did you ever end up resolving this issue?