Currently, I am implementing Milestone 3 .
I had generated a consent request using https://dev.ndhm.gov.in/gateway/v0.5/consent-requests/init
and granted it through PHR App.
but now when I try to Fetch consents , then either /v0.5/consents/on-fetch is not working or shows as timeout error.
### POST /v0.5/consent-requests/on-init
{
"requestId": "7a441699-99e5-4adc-9b4e-6c5b27466ce1",
"timestamp": "2021-10-27T11:36:29.163851",
"consentRequest": {
"id": "2158cc8d-e634-4b5d-9050-77a3f635bc22"
},
"error": null,
"resp": {
"requestId": "229c264d-677f-4671-be6e-ab81ed0865ab"
}
}
### POST /v0.5/consents/hiu/notify
{
"timestamp": "2021-10-27T11:37:43.602626",
"requestId": "402fea6e-398d-4d4e-b902-33c5b23d59ab",
"notification": {
"consentRequestId": "2158cc8d-e634-4b5d-9050-77a3f635bc22",
"status": "GRANTED",
"consentArtefacts": [
{
"id": "b495cd4c-5400-413e-8857-ed370ce31f59"
}
]
}
}
**### POST /v0.5/consents/fetch**
{
"requestId":"495ac9c0-81e2-420f-b8c1-d115c551bfaf",
"timestamp":"2021-10-27T04:36:53.286Z",
"consentId": "2158cc8d-e634-4b5d-9050-77a3f635bc22"
}
### POST /v0.5/consents/on-fetch
{
“requestId”: “d0f9bd04-cdfe-4911-a4d7-a82fe88cf7c4”,
“error”: {
“code”: 2500,
“message”: “Timed out When calling target system”
},
“timestamp”: [
2021,
10,
27,
11,
37,
18,
349188000
],
“resp”: {
“requestId”: “495ac9c0-81e2-420f-b8c1-d115c551bfaf”
}
}