有反映这两天github账户无法登录了。
报这个错:
get github user info err
查了几个地方:
- 代码是否运行正常:Ok
- https代理是否正常:Ok
- 检查了github返回日志,发现是:
get_github_user_info: response body: "{\"message\":\"Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param\",\"documentation_url\":\"https://docs.github.com/v3/#oauth2-token-sent-in-a-header\"}"
get_github_user_info: Got: Err(Custom("read json login error"))
进入这个地址一看:https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/
原来2020年2月就已经说了,要改要改。不过我确实没留意到这个信息。:(
意思就是说access_token不要放在query参数中,而是要放在header里面。照它说的,改了后就好了。
特此记录。
1
共 0 条评论, 1 页
评论区
写评论还没有评论