0
我正在使用以下URL在oops-project組織中創建回購。在從郵遞員創建github回購時解析JSON錯誤的問題
https://api.github.com/orgs/oops-project/repos
我選擇了基本身份驗證(用戶名,密碼),我將名稱和表單數據中的描述一起傳遞。但是,響應是400錯誤請求並帶有以下消息
{
"message": "Problems parsing JSON",
"documentation_url": "https://developer.github.com/v3"
}
該錯誤表明請求中存在錯誤的JSON。你可以發佈你發送給服務的JSON嗎? – simplysiby
我使用表單數據發送鍵值對。 key = name value = helloworld; key = description value = test – starhunter
您可能必須以JSON格式提供請求。 – simplysiby