错误:getaddrinfo EAI_AGAIN api.stripe.com:443

时间:2021-03-09 13:45:24

标签: node.js amazon-web-services amazon-ec2 dns stripe-payments

我们的服务器托管在 AWS EC2 实例上,在 AWS Support 更改 DNS 后,我们今天开始收到以下错误

Error: getaddrinfo EAI_AGAIN api.stripe.com:443

{ Error: An error occurred with our connection to Stripe.
    at /var/www/html/Goeat/admin_and_store_panel/node_modules/stripe/lib/StripeResource.js:219:9
    at ClientRequest.req.on (/var/www/html/Goeat/admin_and_store_panel/node_modules/stripe/lib/StripeResource.js:474:67)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:73:8)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)
  type: 'StripeConnectionError',
  raw:
   { message: 'An error occurred with our connection to Stripe.',
     detail:
      { Error: getaddrinfo EAI_AGAIN api.stripe.com:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
        errno: 'EAI_AGAIN',
        code: 'EAI_AGAIN',
        syscall: 'getaddrinfo',
        hostname: 'api.stripe.com',
        host: 'api.stripe.com',
        port: '443' } },
  rawType: undefined,
  code: undefined,
  doc_url: undefined,
  param: undefined,
  detail:
   { Error: getaddrinfo EAI_AGAIN api.stripe.com:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
     errno: 'EAI_AGAIN',
     code: 'EAI_AGAIN',
     syscall: 'getaddrinfo',
     hostname: 'api.stripe.com',
     host: 'api.stripe.com',
     port: '443' },
  headers: undefined,
  requestId: undefined,
  statusCode: undefined,
  charge: undefined,
  decline_code: undefined,
  payment_intent: undefined,
  payment_method: undefined,
  setup_intent: undefined,
  source: undefined }

你能帮我们解决这个问题吗?

0 个答案:

没有答案