Skip to content

plus+微信推送api报错 #53

Description

@LiuZhipeng99

报错信息如下(方糖推送也报错)

push+发送一对一通知消息失败!!

RequestError: getaddrinfo EAI_AGAIN www.pushplus.plus
    at ClientRequest.<anonymous> (/scripts/node_modules/got/dist/source/core/index.js:953:111)
    at Object.onceWrapper (events.js:421:26)
    at ClientRequest.emit (events.js:326:22)
    at ClientRequest.origin.emit (/scripts/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
    at Socket.socketErrorListener (_http_client.js:427:9)
    at Socket.emit (events.js:314:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
  code: 'EAI_AGAIN',
  timings: {
    start: 1628485414124,
    socket: 1628485414125,
    lookup: 1628485415131,
    connect: undefined,
    secureConnect: undefined,
    upload: undefined,
    response: undefined,
    end: undefined,
    error: 1628485415131,
    abort: undefined,
    phases: {
      wait: 1,
      dns: 1006,
      tcp: undefined,
      tls: undefined,
      request: undefined,
      firstByte: undefined,
      download: undefined,
      total: 1007
    }
  }
}
发送通知调用API失败!!

HTTPError: Response code 400 (Bad Request)
    at Request.<anonymous> (/scripts/node_modules/got/dist/source/as-promise/index.js:117:42)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: undefined,
  timings: {
    start: 1628485416222,
    socket: 1628485416222,
    lookup: 1628485416277,
    connect: 1628485416330,
    secureConnect: 1628485416441,
    upload: 1628485416442,
    response: 1628485416551,
    end: 1628485416551,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 55,
      tcp: 53,
      tls: 111,
      request: 1,
      firstByte: 109,
      download: 0,
      total: 329
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions