profile_email must be one of the user's verified email addresses
在使用patch方法修改imoocdemo账号信息时,为何不能够提交修改邮箱地址。返回报错如标题。不修改邮箱,其他均可正常返回200。
下边是提交更改邮箱错返回信息。
{ "documentation_url": "https://developer.github.com/v3/users/#update-the-authenticated-user", "message": "Validation Failed", "errors": [ { "field": "profile_email", "message": "profile_email must be one of the user's verified email addresses", "code": "custom", "resource": "User" } ] } {'Content-Length': '59', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.19.1', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic aW1vb2NkZW1vOmltb29jZGVtbzEyMw=='} {"name": "babyang12231le", "email": "helloworld@imooc.org"} 422 https://api.github.com/user
profile_email必须是用户已验证的电子邮件地址之一 ,这个是不是有设置隐私邮件之类的东西。