Skip to content
New issue

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

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

Already on GitHub? # to your account

Rate limiting not configured | Issue not solved please provide link to solution #44

Open
ghost opened this issue Apr 28, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2022

var headers = {
    'Content-Type': 'application/json',
    'x-api-version': '2022-01-01',
    'x-client-id': 'perfect id',
    'x-client-secret': 'perfect secret'
};

var dataString = `{
  "order_id": "o26945143520",
  "order_amount": 10,
  "order_currency": "INR",
  "order_note": "Additional order info",
  "customer_details": {
    "customer_id": "ASFS12345",
    "customer_email": "techsupport@cashfree.com",
    "customer_phone": "9816512345"
  }
}`;

var options = {
    url: 'https://sandbox.cashfree.com/pg/orders',
    method: 'POST',
    headers: headers,
    body: dataString
};

function callback(error, response, body) {
    console.log(body)
}

request(options, callback);

**Output**
{"message":"Rate limiting not configured","code":"request_failed","type":"internal_error"} `
`
@bhaskar-cashfree
Copy link

Can you share the request-id for the same?

@ghost
Copy link
Author

ghost commented Apr 28, 2022

It is working with curl request but not with node js request library. The problem is in the request library either it's going wrong or something weird is happening. I think I need to clear cache of npm. My account email is support@decsomic.com and client App ID is 1340522c413d6ffc9d49f5e562250431. Please such issue usually occurs due to poor REST API configuration by developers. I think you will recheck the API and try solving the future issues. I would also suggest to improve customer support so that I need not raise issues on gitHub. The best suggestion is to provide a technical live support chat in dashboard.

@bhaskar-cashfree
Copy link

Closing the issue.

@ghost
Copy link
Author

ghost commented Apr 30, 2022

ok close it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant