【发布时间】:2021-06-13 15:26:48
【问题描述】:
我想通过 curl 创建一个新的 GitHub 存储库,但我总是收到错误:“Problems parsing JSON”
curl -u "username:token" https://api.github.com/user/repos -d '{"name":"test","private":true}'
错误:
{
"message": "Problems parsing JSON",
"documentation_url": "https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user"
}
但该错误仅在我使用 Windows 10 时发生。我尝试在我的 linux 操作系统上执行完全相同的命令,并且一切正常。
【问题讨论】:
标签: windows github-api