Not getting encrypted data

After granting the consent for health data on my PHR app, I’m receiving consentArtefacts IDs on my url at this endpoint
Getting consentArtefact on this

When i use this consentArtefact IDs for fetching data from this endpoint
requesting data for a consentArtefact ID from this URL

curl request is -
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/health-information/cm/request
–header ‘accept: /
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzYzNTgxNzAsImlhdCI6MTY3NjM1NzU3MCwianRpIjoiMWMzMjFiYjktOGY4ZS00N2E0LThiYzctMTdmOWU5MTZiZjhjIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhZTY3NjIyMS03YTE4LTQ2ZDAtODZmYy03MGU2NmYxNGUwYWEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMjM3Iiwic2Vzc2lvbl9zdGF0ZSI6Ijc1Njk0NDFjLTM3MDgtNDNmMy1iNzgxLTU3MGVlNjhlNTlmZSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAyMzciOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjExIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6IlNCWF8wMDAyMzciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDIzNyIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMTEifQ.KpPwru4UrOWRIw6NSFhplufllIfSMrEgRFGNIYh60VWJ4upalUg0pJkZJC0OPyzZfNffkNnriy52CPqe4rGAsB3Iga6o8Ghxq69DC_-TRTHCBUrqIyr_GgZinvvZcPHETtL1JRbTeV0IoHwfuHcEWuiL1R4KLUX0xkna4BCCKGi-GWc_UGCauTpYawHLLtrnPSrLAfz2NLbELRB0DsPGXXVZbjyyK0TXg6oKGfWRrOEKtTUrg4HKhsUN8CoW2r0VJPzsNHTHjbFoU5RYe-nYUZng6XFz9rIfgpWjpTQnyM02h_ZiYLExQNosWjbZkznVAZGrjRFm7CtpOmC6Cubocg’
–header ‘Cookie: TS01960242=01445fed043a54ce003b7a2b492899bd6b0f10b0b35ad1c612f316ccb79ab0b79cd5cd5de30a12d705effd5cc80fbdc2532da55196’
–data-raw ‘{
“requestId”: “27dd91f9-33ac-47d2-9849-2df9c808cbdc”,
“timestamp”: “2023-02-14T06:58:01.533000”,
“hiRequest”: {
“consent”: {
“id”: “ce89a599-b278-481a-b8b4-5b7952b1720c”
},
“dataPushUrl”: “https://webhook.site/01f527bf-0ee3-4f44-91bc-1b10e9bd7532/push-data-here”,
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2023-06-16T15:29:30.029Z”,
“parameters”: “Curve25519/32byte random key”,
“keyValue”: “Ayn3OfU1VV4NezwhqEDd2rPjo9HNglwYftRmQxziJneg”
},
“nonce”: “nLNxuOCgnDsd0ibzvbU90qmWXLdhquju2ab8JEdw+io=”
}
}
}’

Instead of getting encrypted data that i used to get before , i’m just getting data requested response for all the consent artefact IDs, I’m using the correct key and nonce generated from that java code

@hrithikj is this concern resolved?

Hi @hrithikj, Kindly check with this sample curl and try again.

curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/health-information/cm/request
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzY2MjcyMTEsImlhdCI6MTY3NjYyNjYxMSwianRpIjoiZDZiOTg1ZjEtOGEyMi00NmUyLThlZTgtNDExYzJjYzRjZWJiIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIzY2ZlMGQzNS1kNzNjLTQ5YTctOWE5OS0wNjgzZDhiZjcyY2MiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJBVFVMX0xUSSIsInNlc3Npb25fc3RhdGUiOiI5ZDc0MjY2My1iNjQ5LTQyZjEtYjljOS0xNzQ2ZjkzMDc4ODQiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6OTAwNyJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiaGl1Iiwib2ZmbGluZV9hY2Nlc3MiLCJoZWFsdGhJZCIsImNtIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiLCJnYXRld2F5Il19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiQVRVTF9MVEkiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5Ljg2IiwiY2xpZW50SWQiOiJBVFVMX0xUSSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWF0dWxfbHRpIiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42OS44NiJ9.cfKycKlLekPvetpjrVFySwlLswJy9VTXVzvkPca2o3F491icobfww4I9HzJESSNKHJjDF422ou8n5ilOx2CgVRwJiVKajIS5Z84E20SO4gqNoa9TWkyCzG7mC75iugZ0EKEle3zQULmXm4REq1gOesoJMRZJUK0SZy3gaI4BRCzmhatR04Aa5XEfLXuz1FGkL9AFbAe6k44aVIQfN2NHXkKvgyhFjCR5JbQrtsi0Aby9Fx38TSwgiVovD8XSa9lNXnhEpqQKz1EuNp67JZomS3VDE_L_6YXniS6aWzINdHu_f6DcYvfabQe2m90tY2U3bRuo1ZvxNoYLj7KaB5P_Bw’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS011c04bd=01445fed04161bd506330b44b80ee960eb8cb003f661a7c011a00b4393cfc87ddcb87b9a49530887534b7a148611ed02d12e4b351e’
–data ‘{
“requestId”: “cbd1c330-1f96-4530-bdb8-2d157ade9b95”,
“timestamp”: “2023-02-17T09:40:41.435000”,
“hiRequest”: {
“consent”: {
“id”: “13948092-837d-4555-bf2f-55d9cdba1519”
},
“dateRange”: {
“from”: “2023-02-01T14:30:29.592Z”,
“to”: “2023-02-17T16:33:29.592Z”
},
“dataPushUrl”: “https://webhook.site/8be38d3c-76df-4e3c-85aa-62ae0ffa7a45”,
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2022-02-24T10:25:26.274Z”,
“parameters”: “Curve25519/32byte random key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARlS9/hJcUiWbBTtmWevH87oEXX4poAIkp5cHYZLTzbBV150xJ4Lx/Onopxhagppun2jDC8YSMpiygnbJ+MioVY”
},
“nonce”: “QmpSshyjgvai9v4Z1cYVdpWwf8sGVO8QQMyFRlLbKPc=”
}
}
}’

Pls revert in case of any issue.
Thanks!

@hrithikj please confirm if we can close this thread.

No even after hitting the new URL it is just showing requested and the encrypted data is not coming

Should we create a new health id?
can you please check if this id is still valid

jherok01@sbx

we have quite a lot of health data already pushed on it

yes please try with a new ABHA address and confirm.

Hi @hrithikj Can you please me if your issue is resolved . We are also facing same issue as the encrypted data not coming to our HIP