V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
rorke
V2EX  ›  GitHub

使用访问 Java httpclient 访问 api.github.com/user 发生 connection reset

  •  
  •   rorke · 2020-05-03 22:57:58 +08:00 · 1600 次点击
    这是一个创建于 1446 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在写一个简单的第三方登录的功能,因此需要带上用户的 access token 访问 api.github.com/user 请问出现这个问题是因为网络的原因吗?

    如果我想解决这个问题应该怎么做?

    3 条回复    2020-06-30 22:47:51 +08:00
    shenyangno1
        1
    shenyangno1  
       2020-05-13 19:40:40 +08:00
    我也遇到了这个问题,我也是用的 httpclient,access token 无论放在 url 参数中或者放在 header 中都不行。苦恼的是偶尔能正常返回结果,大部分时间请求结果都是 connection reset 。坐等大佬。。。
    rorke
        2
    rorke  
    OP
       2020-06-28 11:35:35 +08:00
    @shenyangno1 请问解决了吗
    shenyangno1
        3
    shenyangno1  
       2020-06-30 22:47:51 +08:00
    @rorke 没有:-(
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4299 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:31 · PVG 13:31 · LAX 22:31 · JFK 01:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.