收藏
回答

调用授权超时是什么情况呀?

调用授权GET https://api.weixin.qq.com/sns/jscode2session?appid=APPID超时


error: "ConnectionTimeoutError: Connect timeout for 5000ms

(connected: false, keepalive socket: false, agent status: {"createSocketCount":48,"createSocketErrorCount":0,"closeSocketCount":48,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)↵headers: {}"

回答关注问题邀请回答
收藏

1 个回答

  • 南栀倾寒
    南栀倾寒
    2022-03-09

    已解决,因为项目后端是部署在局域网里的 ,访问不了api.weixin.qq.com。

    碰到类似的问题的可以先ping一下api.weixin.qq.com 看看网络通不通

    2022-03-09
    有用
    回复
登录 后发表内容