Hi Team,
For some of the data push request, I am getting 500 Internal Server Error.
I have also verified that the transaction id I have sent to the health information data request is the same as received on the health information request.
Please find below stack trace and various service call request-response.
Stacktrace :
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error: [{“error”:{“code”:4500,“message”:“Failed to identify data flow request for transaction Id”}}]
at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:100)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:172)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:112)
at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:785)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:743)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:677)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:586)
Received Health Infromation Request(/health-information/hip/request):
(requestId=aa61c658-efb1-420c-a60f-9e12c8bc27ba, timestamp=Tue Dec 22 16:04:46 IST 2020, transactionId=dcddf838-4b2e-4623-9d01-5086c04bc66d, hiRequest=HIPOnAddCareContextsResponseHiRequest(consent=HIPId(id=8639ae0c-9042-4cbc-8ec0-9be1662bba4c), dateRange=HIPDateRange(from=Tue Sep 22 11:24:13 IST 2020, to=Tue Dec 22 16:04:36 IST 2020), dataPushUrl=https://dev.ndhm.gov.in/patient-hiu/data/notification, keyMaterial=HIPKeyMaterial(cryptoAlg=ECDH, curve=curve25519, dhPublicKey=HIPKeyMaterialDHPublicKey(expiry=Thu Dec 24 16:04:36 IST 2020, parameters=Ephemeral public key, keyValue=BBMynIXeWR7hAU5O+uBaNnS32Q+Dqc0D08F8mbC7x1W6RCfhmFXOq6Uj4KFsRqxIYKIA8PVC+502Twqj+k+aTfA=), nonce=zl26CRD5a+EbgdDDkMNucdduqg9kDSRg9P8OLP+beL8=)))
8639ae0c-9042-4cbc-8ec0-9be1662bba4c
Sent Health Infromation Acknowledgement (health-information/hip/on-request):
{“requestId”:“c13bc3c7-c3d1-4197-aff6-90c3f4cb8915”,“timestamp”:“2020-12-22T10:34:47.230Z”,“hiRequest”:{“transactionId”:“dcddf838-4b2e-4623-9d01-5086c04bc66d”,“sessionStatus”:“ACKNOWLEDGED”},“error”:null,“resp”:{“requestId”:“aa61c658-efb1-420c-a60f-9e12c8bc27ba”}}
Data push request:
{“pageNumber”:1,“pageCount”:1,“transactionId”:“dcddf838-4b2e-4623-9d01-5086c04bc66d”,“entries”:[{“content”:“tA1Lw1i+UZw3GFQTM6CCzK6BMFQ/Vfd4vdrBCEfwhpDWE2boJJUOuLmHMx21Ogd5hZ0ueBUlHmW2zBD3IzhYP4tjw3rPlGIfiF6bi1z6cabXwtV3HF1QLy+EGtrkeSHLwlVe3rr+kmixEKP37CAdh7txziZQ/Xbo4fhfAWloi7OgzWtuUlKSZKTM5FkHgtLaZOeVS+drFc/nB4hzrN9OaNj1UiDvQEnOIyUIvM6n9fPyXzPY982MusGyLXakwzbT3c5jkPOKZKrylQDmHPTxdnCjfINzJrEomXsRXwQSPDTBRchuvXmD/86gsvZM3K5OwGm3WdQfuuB8oK74F86yltrAO2KgZ1gZBL+kEmOxDajIiW4XE7CLIaI4Y7YE3irSfQY47DaRV7EZNBUYmlQzI0B4QE28NCtlZ86Qtxsna1IWVqsvuLkI3tDXAHjsv4hTH6u6FayOjIUuqDI0RUyVyXQVpJQtCfb6797vB7KACIhQ5HIndbxUgDe0PI4sLSbtuSuS3ZPVvruspcgTJr+gG0uuXIN0H1IbpV3dsTWgDcYi83iLmftF8RsbJOKDmUXd/s2cG3OGfLPf9/FCY/fyi/A/zlOGgC2iy/2K3YX5Z2HY2LkWdbtPBbaSrI7SErIHftAdFltuMT2GxpeHwsdz5vIHZp9THKjiNqpuRclqHf7+mxb7DjZe4c9KqxnkEI9QUEFHievJ0VDze+a5FnPAfLDhqm0ABuyU73unJsKw4kebx9FS2Y+CMHhTvnbE2A/E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xiclOnJXLfd3TQE5AhVppnn38iP9w3M/bNOfF1oUM+jrsDCbB5O4a9PmPmPolgxlC0t7A/an6lI2MAt8WBVCaXkl0AXwsfIpsWuIBGSg7B9enBGExPKDkDOMphTLn7kSBD9GqJjwhWIJO4968N7ISd38fk3xEptMpwcnHD0kMWh5F8LrUEm88+/xV+GuWPHM9lB4A6THD0FTLk4U1pHWuMriwDdwYfFYZBYAbP0jZwiZstgJkrZsd7CjxOg9lYYzcAbNsvNwDYigz7Rfs09DFM3kuj/didRkpac24pkDjEnpP2VCmAnZ9kkU5vyL358t4II1uICLwkPHPXXN8RmR0BCSegBaqPmnoO6KunwKVXhHg6IXPyoBtknm7PPLJSwMU1wpXCdFpINZHi1bmvW17CQzri+wdQk9k37i0Zz2Uka4B7NroFkxtRZmtWBJefafExC6NLmEQ46ylxYiaGr7hWB2VHcBuMqCpvUwjT4sVEwQNpkBpVX6jfmjvFtuknU5YefHJmEz4do7SsmEaDejbOAYXr5nxhC25FHvjy0QmYcZNRoKTBCw0Wsvi3vROZK13erLNJ2v12qqIkEpTgONnq0r3Js+T9/6OMtKo52nwMiPtVt64VhPYY8odmsGdq7uau/bma0mHzga3zQOdbR/J5scGWCpvyrwbQ1OQY2hZHye8CnTx5+37Wa6qcYM68GyBS4AKT2Mkr//Q92nTc/6LFonJiQzx9gGud/B10tWMvUt62Ur7O6dMAjImMeUyZF8KRynBd0KqZMdv0hwWi7fSHP1lVN9a2c9qjs1rF/WNO+ilw0arI4qOh/I7ijmPARCCX+6+nK4aeYeikX1SP2le55P/CO6e1mKD7btiYd0qkuAuUmpT7izH48y2XQKredyZoh81oiI2aTrJ3YqG7PC3Qu48TRjJsgCBjNTJLbgBqeKPUBnSuTjYDYLToQ0YfKJ8Emb2L9y93uLF6pXVfgZHhESWNC5rdeEriJJEsb5K/u55ttwlOEneLguYb9hBuMdFa2fdmFfnOrCQ45PGVjtOOAf2qoM+dNsngYi++4+SkKmhjmBjzTQ==”,“media”:“application/fhir+json”,“checksum”:“C187E57A278EAF6B808CE83669A58692”,“careContextReference”:“2020-09-01_VITAMIN_A”}],“keyMaterial”:{“cryptoAlg”:“ECDH”,“curve”:“Curve25519”,“dhPublicKey”:{“expiry”:“2020-12-22T10:35:47.794Z”,“parameters”:“Ephemeral public key”,“keyValue”:“MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARjjhut8KsTgf9wVMAoBC2ObgbTcduAjx5w2cbiLu9exVFqhKNO/kB1J6W7AOSZpshoOZto7vqqIZPPMysyBEeI”},“nonce”:“Rnt7BwiJLoR8vmf4Jd54EajFq3egqGXIxFRjEVsFgw8=”}}
Data transfer Notification(health-information/notify) :
{“requestId”:“54681c41-8b43-4995-91e4-df59cc9bdf75”,“timestamp”:“2020-12-22T10:34:48.248Z”,“notification”:{“consentId”:“8639ae0c-9042-4cbc-8ec0-9be1662bba4c”,“transactionId”:“dcddf838-4b2e-4623-9d01-5086c04bc66d”,“doneAt”:“2020-12-22T10:34:48.248Z”,“notifier”:{“type”:“HIU”,“id”:“tmh”},“statusNotification”:{“sessionStatus”:“FAILED”,“hipId”:“max”,“statusResponses”:[{“careContextReference”:“2020-09-01_VITAMIN_A”,“hiStatus”:“ERRORED”,“description”:""}]}}}
@Mounica @sukreet Please have a look at this issue. Let me know If I miss anything.
Thanks
cc @stank