Care Context discover api- Unknown error occurred

@Shubhanshu_Shukla

Care context api some times work and some time gives unknown error occurred. Kindly help with this.

https://dev.abdm.gov.in/cm/v1/care-contexts/discover

X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJyYWh1bDM0NTZAc2J4IiwiY2xpZW50SWQiOiJQSFItV0VCIiwic3lzdGVtIjoiQUJIQS1BIiwicmVxdWVzdGVySWQiOiJQSFItV0VCIiwicGhyTW9iaWxlIjoiNzg0MDA5OTg2OCIsImV4cCI6MTY1MzQ3MjE5NiwiaWF0IjoxNjUzNDY0OTk2LCJwaHJBZGRyZXNzIjoicmFodWwzNDU2QHNieCIsInR4bklkIjoiNzQ0ZjJmY2YtODIyZi00NTY4LTlmYzMtMjMxYjgyNmYwNzhmIn0.7VrRm1UvWa8yabSdXGxFgWOmkI90EnV-JM5RZEdAz9PS50b3-dVP7f4x8l5AxL8JOVB6xaM9l7w5b4O34amipXiT_tFG8hAQvRXuKgz4gNWCYCMGMMLnSGAb9u4ZJPppGwysw-TSIu0fmq1tMbUBpwGC3Byo2gYphk98JjDq3YjtClSNNUz8tTiVBpCzD–VIF19C0NcXW97s97aEo-5dmSLzvqL-79Rbc3MYlQGr84yypjYpjCgDkiI8w-AquoH0RWNqp56bbNczgQM7Z3JoRG–DJIOIijPoIS9ssL3lS-8Z3b2aWPa54cqHZOHI8YkKKjIYp7RJAAzR5aJMXwyA
Authorization: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJyYWh1bDM0NTZAc2J4IiwiY2xpZW50SWQiOiJQSFItV0VCIiwic3lzdGVtIjoiQUJIQS1BIiwicmVxdWVzdGVySWQiOiJQSFItV0VCIiwicGhyTW9iaWxlIjoiNzg0MDA5OTg2OCIsImV4cCI6MTY1MzQ3MjE5NiwiaWF0IjoxNjUzNDY0OTk2LCJwaHJBZGRyZXNzIjoicmFodWwzNDU2QHNieCIsInR4bklkIjoiNzQ0ZjJmY2YtODIyZi00NTY4LTlmYzMtMjMxYjgyNmYwNzhmIn0.7VrRm1UvWa8yabSdXGxFgWOmkI90EnV-JM5RZEdAz9PS50b3-dVP7f4x8l5AxL8JOVB6xaM9l7w5b4O34amipXiT_tFG8hAQvRXuKgz4gNWCYCMGMMLnSGAb9u4ZJPppGwysw-TSIu0fmq1tMbUBpwGC3Byo2gYphk98JjDq3YjtClSNNUz8tTiVBpCzD–VIF19C0NcXW97s97aEo-5dmSLzvqL-79Rbc3MYlQGr84yypjYpjCgDkiI8w-AquoH0RWNqp56bbNczgQM7Z3JoRG–DJIOIijPoIS9ssL3lS-8Z3b2aWPa54cqHZOHI8YkKKjIYp7RJAAzR5aJMXwyA

Request: {“hip”:{“id”:“LPL”},“requestId”:“744f2fcf-822f-4568-9fc3-231b826f078f”,“unverifiedIdentifiers”:[{“type”:“MR”,“value”:"+917840099868"}]}

{“error”:{“code”:1500,“message”:“Unknown error occurred”}}

@Govind_Deshmukh kindly look.

Hi @Rahulsawhney,

Could you please share your abha address and password because for our end its working fine.

Thanks,
Govind D

ABHA address is rahul345@sbx
We are using OTP login and not generated any password.

Hello @Rahulsawhney,
Could you please generate the password and share with me & for you information this is common issue any one get after login some time because there are some data process will happen for all hip on consent -request and after get Status will call then you guys’ are getting this issue.

Thanks,
Govind D

Can u please tell how we can test PHR (consents and fetch and link records) integration. Currently, we don’t have our own HIP to test our PHR so that we can check consent requests, approvals, records fetching and linking etc.

@Govind_Deshmukh

Please let us know the status of the same.

Hi @Rahulsawhney,

Please follow the below link, on sandbox they have given those api with curl:
NDHM Sandbox (abdm.gov.in)

for consent follow below curl:
curl --location --request POST ‘https://dev.ndhm.gov.in/cm/v1/patient/consent-request
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJqYXRpbi5paWl0YUBzYngiLCJjbGllbnRJZCI6InNieCIsInN5c3RlbSI6IkFCSEEtQSIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsInBock1vYmlsZSI6bnVsbCwiZXhwIjoxNjU2NDkwMjQxLCJpYXQiOjE2NTY0ODMwNDEsInBockFkZHJlc3MiOiJqYXRpbi5paWl0YUBzYngiLCJ0eG5JZCI6IjVkYzRhNTViLWE5NGMtNGZiOC04ZGU2LTk0M2Q4OGE5OGQ3MyJ9.I8lX7eUygK9mdLoDe5Hdox95hpkXTeV2OnobsZp7bvbjzYc6eUeI4B5S9rBYb55Whj9qltslpiP97LKNfbzPczzK4YNkVJWeuWdNEhjYb-O5u_8xlXVnBrSCxKlMWviTxWo6vepOcp9qUr0JFWlw_nNRlO55TBn56i7X1PcD15jpOiNOphaRtEVqjJLw1pxs8INmAnR6tKBum3r9oHv2MG4nNhTMun6jXoWO5bvYPXkEmxTkETmAFMHRK7XtFB2-cMcjwMwZYlaN_Ecf-ML3FnAmPL67meZxSdc9L-FCyzmZ52EPXjuQbf9TjBvJviflN6QG3bFgQTrnxqyAT_ax_A’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’
–data-raw ‘{
“hipIds”: [
“SUMI-HIP”
],
“reloadConsent”: false
}’


curl --location --request POST ‘https://dev.ndhm.gov.in/cm/v1/patient/health-information/status
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJqYXRpbi5paWl0YUBzYngiLCJjbGllbnRJZCI6InNieCIsInN5c3RlbSI6IkFCSEEtQSIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsInBock1vYmlsZSI6bnVsbCwiZXhwIjoxNjU2NDkwMjQxLCJpYXQiOjE2NTY0ODMwNDEsInBockFkZHJlc3MiOiJqYXRpbi5paWl0YUBzYngiLCJ0eG5JZCI6IjVkYzRhNTViLWE5NGMtNGZiOC04ZGU2LTk0M2Q4OGE5OGQ3MyJ9.I8lX7eUygK9mdLoDe5Hdox95hpkXTeV2OnobsZp7bvbjzYc6eUeI4B5S9rBYb55Whj9qltslpiP97LKNfbzPczzK4YNkVJWeuWdNEhjYb-O5u_8xlXVnBrSCxKlMWviTxWo6vepOcp9qUr0JFWlw_nNRlO55TBn56i7X1PcD15jpOiNOphaRtEVqjJLw1pxs8INmAnR6tKBum3r9oHv2MG4nNhTMun6jXoWO5bvYPXkEmxTkETmAFMHRK7XtFB2-cMcjwMwZYlaN_Ecf-ML3FnAmPL67meZxSdc9L-FCyzmZ52EPXjuQbf9TjBvJviflN6QG3bFgQTrnxqyAT_ax_A’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’
–data-raw ‘{
“requestIds”: [
“7c69323a-16e6-47e1-8f4a-3aed50eef0d9”
]
}’

for linking :

curl --location --request GET ‘https://dev.ndhm.gov.in/cm/patients/links
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJqYXRpbi5paWl0YUBzYngiLCJjbGllbnRJZCI6InNieCIsInN5c3RlbSI6IkFCSEEtQSIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsInBock1vYmlsZSI6bnVsbCwiZXhwIjoxNjU2NDkwMjQxLCJpYXQiOjE2NTY0ODMwNDEsInBockFkZHJlc3MiOiJqYXRpbi5paWl0YUBzYngiLCJ0eG5JZCI6IjVkYzRhNTViLWE5NGMtNGZiOC04ZGU2LTk0M2Q4OGE5OGQ3MyJ9.I8lX7eUygK9mdLoDe5Hdox95hpkXTeV2OnobsZp7bvbjzYc6eUeI4B5S9rBYb55Whj9qltslpiP97LKNfbzPczzK4YNkVJWeuWdNEhjYb-O5u_8xlXVnBrSCxKlMWviTxWo6vepOcp9qUr0JFWlw_nNRlO55TBn56i7X1PcD15jpOiNOphaRtEVqjJLw1pxs8INmAnR6tKBum3r9oHv2MG4nNhTMun6jXoWO5bvYPXkEmxTkETmAFMHRK7XtFB2-cMcjwMwZYlaN_Ecf-ML3FnAmPL67meZxSdc9L-FCyzmZ52EPXjuQbf9TjBvJviflN6QG3bFgQTrnxqyAT_ax_A’
–header ‘Cookie: TS01960242=01115a1c90b294755c4b3cd20d7a944c0a4c9cb4dcd81420fb938ae176db97065b14cfabe5bc8b950855f89cdad5fade8fa644d9ca’

Thanks,
Govind D

@Rahulsawhney - Hi Rahul ,

please confirm whether issue is resolved or not

Hi @Rahulsawhney,
Please provide the confirmation if issue is resolved.

@Sunil_Yadav if we are not getting any response back from integrator for issue, we can close this ticket Today EOD.

Thanks,
Govind D.