Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: getaddrinfo EAI_AGAIN app.midtrans.com #84

Open
nayakayp opened this issue Nov 7, 2024 · 0 comments
Open

Error: getaddrinfo EAI_AGAIN app.midtrans.com #84

nayakayp opened this issue Nov 7, 2024 · 0 comments

Comments

@nayakayp
Copy link

nayakayp commented Nov 7, 2024

Halo, hari ini tiba-tiba client tidak bisa melakukan pembayaran. Tolong bantuannya ya.

Sepertinya krn saya pakai library ini.

{
  "ApiResponse": null,
  "httpStatusCode": null,
  "level": "error",
  "message": "[createSubscriptionPayment] Failed creating snap payment. Midtrans API request failed. HTTP response not found, likely connection failure, with message: \"getaddrinfo EAI_AGAIN app.midtrans.com\"",
  "name": "MidtransError",
  "rawHttpClientData": {
    "code": "EAI_AGAIN",
    "config": {
      "auth": {
        "password": "",
        "username": "Mid-server-REDACTED"
      },
      "data": "{\"transaction_details\":{\"order_id\":\"PSID-C88BD-1730968509190\",\"gross_amount\":85000},\"customer_details\":{\"first_name\":\"Nayaka Yoga Pradipta\",\"email\":\"[email protected]\"},\"item_details\":[{\"id\":\"66e764c41fe48dcae3c14da3\",\"price\":85000,\"quantity\":1,\"name\":\"Premium Plan\",\"category\":\"subscription\"}]}",
      "headers": {
        "Accept": "application/json",
        "Content-Length": 296,
        "Content-Type": "application/json",
        "user-agent": "midtransclient-nodejs/1.3.0"
      },
      "maxBodyLength": -1,
      "maxContentLength": -1,
      "method": "post",
      "params": {},
      "timeout": 0,
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "transitional": {
        "clarifyTimeoutError": false,
        "forcedJSONParsing": true,
        "silentJSONParsing": true
      },
      "url": "https://app.midtrans.com/snap/v1/transactions",
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN"
    },
    "message": "getaddrinfo EAI_AGAIN app.midtrans.com",
    "name": "Error",
    "stack": "Error: getaddrinfo EAI_AGAIN app.midtrans.com\n    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)",
    "status": null
  },
  "stack": "MidtransError: Midtrans API request failed. HTTP response not found, likely connection failure, with message: \"getaddrinfo EAI_AGAIN app.midtrans.com\"\n    at /app/node_modules/midtrans-client/lib/httpClient.js:95:13\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant