Too many requests found in https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init

https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init

{

"requestId": "68065ea8-8c3c-11ed-a1eb-0242ac120002", 

"timestamp": "2023-01-04T20:06:21.070000", 

"query": 

{ 

    "id": "ashish.tech20@sbx", 

    "purpose": "LINK", 

    "authMode": "MOBILE_OTP", 

    "requester": 

    { 

        "type": "HIP", 

        "id": "hospedia" 

    } 

} 

}

Response

{

"error": {

    "code": 2429,

    "message": "Too many requests found"

}

}

Hi @amnigam this is the timestamp error, when your system time does not match with real time.

Kindly run the below mentioned script in pre-request script.

const moment = require(‘moment’);
pm.globals.set(“timestamp”, moment.utc().add(2,‘minutes’).format(“YYYY-MM-DDTHH:mm:ss.SSSSSS”));

Note: Kindly add the time according to your system time.

Thanks

But i am using it from Postman to call the init API

{

"requestId": "68065ea8-8c3c-11ed-a1eb-0242ac120002", 

"timestamp": "2023-01-04T20:06:21.070000", 

"query": 

{ 

    "id": "ashish.tech20@sbx", 

    "purpose": "LINK", 

    "authMode": "MOBILE_OTP", 

    "requester": 

    { 

        "type": "HIP", 

        "id": "hospedia" 

    } 

} 

}