Nodejs使用wechat-oauth出现WeChatAPIConnectionTimeoutError

唱不完的离歌 发布于 2017/08/07 08:53
阅读 304
收藏 0

问题很奇葩,一切ok,在windows上开发完成后迁移至线上centos6.8。发现一直报连接超时异常,一直不好。各种方法都试过了,还是没ok。 求助各位大侠。

 

错误信息:

[2017-08-07 08:43:20.425] [INFO] console - { WeChatAPIConnectionTimeoutError: Request timeout for 5000ms, GET https://api.weixin.qq.com/sns/oauth2/access_token -1 (connected: false, keepalive socket: false)
headers: {}
    at Timeout._onTimeout (/nodejs/CourseSystem/Enroll/node_modules/wechat-oauth/node_modules/urllib/lib/urllib.js:630:13)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
  name: 'WeChatAPIConnectionTimeoutError',
  requestId: 4,
  data: undefined,
  path: '/sns/oauth2/access_token?appid=****&secret=*****&code=051rlXZE0RBeCi2ljE0F0uMj0F0rlXZC&grant_type=authorization_code',
  status: -1,
  headers: {},
  res: 
   { status: -1,
     statusCode: -1,
     headers: {},
     size: 0,
     aborted: false,
     rt: 5008,
     keepAliveSocket: false,
     data: undefined } }
GET /enroll/oauth?code=051rlXZE0RBeCi2ljE0F0uMj0F0rlXZC&state=STATE 302 5011.034 ms - -

加载中
0
gudaoxuan
gudaoxuan

最近遇到了同样的错误,最后解决了吗

返回顶部
顶部