< 返回我的博客

Mike Tang 发表于 2021-08-13 15:03

有反映这两天github账户无法登录了。

报这个错:

get github user info err

查了几个地方:

  1. 代码是否运行正常:Ok
  2. https代理是否正常:Ok
  3. 检查了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 页