Share Profile API Issue - plenome

Hi @IntegrationSupport @Shubhanshu_S,

When using the share profile API: https://dev.abdm.gov.in/cm/v1/patients/profile/share

I got this error

{
“error”: {
“code”: 1500,
“message”: “Error from Plenome001,Error in making call to target system Content type ‘text/html;charset=iso-8859-1’ not supported for bodyType=java.util.HashMap<?, ?>,Please try again”
}
}

and this is the payload I am sending:

[15:20] Velu Karthick
curl --location ‘https://dev.abdm.gov.in/cm/v1/patients/profile/share’ \

–header ‘X-Auth-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjoiNjI1MDExIiwic3ViIjoicHJpeWF2ZWx1QHNieCIsImNsaWVudElkIjoiU0JYXzAwMjkyOCIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsImdlbmRlciI6Ik0iLCJkaXN0cmljdE5hbWUiOiJNQURVUkFJIiwibW9iaWxlIjoiNzA5MjMyNzY2NyIsImZ1bGxOYW1lIjoiVmVsdSBLYXJ0aGljayBNIiwiYWRkcmVzc0xpbmUiOiJDL08gTXVydWdhbiAzLzUxNyBWQUxMQUJBIEdBTkFQQVRISSBTQUxBSSBESElOQU1BTkkgTkFHQVIgS292aWxwYXBha3VkaSIsImhlYWx0aElkTnVtYmVyIjoiOTEtMjYzMy0xNTgyLTQ4NjYiLCJtb250aE9mQmlydGgiOiIzIiwic3lzdGVtIjoiQUJIQS1BIiwic3RhdGVOYW1lIjoiVEFNSUwgTkFEVSIsImRheU9mQmlydGgiOiIyMiIsInBock1vYmlsZSI6IjcwOTIzMjc2NjciLCJleHAiOjE3MDEzMzcxMTMsImlhdCI6MTcwMDczMjMxMywicGhyQWRkcmVzcyI6InByaXlhdmVsdUBzYngiLCJlbWFpbCI6bnVsbCwidHhuSWQiOiJjNjc5M2NkMS05YzE5LTRjOGItOWU4My03NDFkY2IxMGE0M2UiLCJ5ZWFyT2ZCaXJ0aCI6IjIwMDEifQ.YX1CS6R4G6h9UatYFXD7SY46urWLaUa5f4Zumw7JfX6og3GqiaXvYx7rtm7cJebRj9Ofs3LNwXIWiFBYqvdHh-udOwKRrS7cC1ClVC92C1wd1u3eHkx4m8N-BjOa3_biraXaQE27Bu2L3yg4ZVoDvCqUt4mUFe9-UbtohturCEAxVzKInMK2k1FWFmc_so3-dhrKCEBueYq3DdvRvXyoGRKpayAmFWcqvG5pepoQ7X6iLFmMezN0LmtLpKW9W4I5CGK4OLIuUj_qP5Fz-Qap4EYxxTtxTCij1KD4jn4XozIvyVCgtaOX0S4yLm0FOKDCx692FXMchjOg_p44tEqj2w’ \

–header ‘Content-Type: application/json’ \

–data '{

"requestId": "e96d548a-8a95-44d5-a450-94fd2c75b58b",

"intent": {

    "type": "REGISTRATION"

},

"location": {

    "latitude": "",

    "longitude": ""

},

"hipDetails": {

    "hipId": "1234567",

    "code": "Blocktrack"

},

"source": "ANDROID"

}’

Can you please help me with this.

@Abishekbv Please use this CURL

curl --location ‘https://dev.ndhm.gov.in/cm/v1/patients/profile/share’ \

–header ‘X-Auth-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjoiMzAxNDAxIiwic3ViIjoic2FjaGluc2FpQHNieCIsImNsaWVudElkIjoiU0JYX1RFU1RfU0MiLCJyZXF1ZXN0ZXJJZCI6IlBIUi1XRUIiLCJnZW5kZXIiOiJNIiwiZGlzdHJpY3ROYW1lIjoiQUxXQVIiLCJtb2JpbGUiOiI3NTU5NDM0MzkzIiwiZsbE5hbWUiOiJTYWNoaW4gWWFkYXYiLCJhZGRyZXNzTGluZSI6IkMvTyBWZWVyc2luZ2ggWWFkYXYgdmlsbGFnZSBnYWRsaSBraSBkaGFuaSB0ZXNoaWwgbXVuZGF3YXIgR2FkbGkiLCJoZWFsdGhJZE51bWJlciI6IjkxLTQ3MjctNjAzMi0yMTE2IiwibW9udGhPZkJpcnRoIjoiNyIsInN5c3RlbSI6IkFCSEEtQSIsInN0YXRlTmFtZSI6IlJBSkFTVEhBTiIsImRheU9mQmlydGgiOiIxOCIsInBock1vYmlsZSI6Ijc1NTk0MzQzOTMiLCJleHAiOjE2OTMzNzc3NzYsImlhdCI6MTY5Mjc3Mjk3NiwicGhyQWRkcmVzcyI6InNhY2hpbnNhaUBzYngiLCJlbWFpbCI6ImFyaWJjaGF1ZGhhcnlAZ21haWwuY29tIiwidHhuSWQiOiJlOTZhZGI5OC1hMTdjLTRmZDQtYTM0YS02NmFkN2FlMjE0ZGQiLCJ5ZWFyT2ZCaXJ0aCI6IjE5OTgifQ.VqbXpUtuSbs1sFLsh9GaG6Cp44H2O2eBH7cAPh7XOxEkrZwg8q-n2HCG6bqUqNrT9_5DTEaDrvFiYtwx2rdJOcdhhrMZeXqJqLGuywmHJ6UArCo685do69ydQeHvIojCnRHCnzSA7RPUT8vUr5gjGb2NB94DFtkeeqPknOz-QryE3r0qGCQYI7Jy9rOnrjLHF5Po-VnZtQatYiaQm1Xwa43m4UgRU-czc2V4-KfUZ6mM9b1NFayKDbT3pcO2OvRl6weA2_V8VDoxyUj1eBa-Z-n0LdPJ2Nsxg1bmneEd00bPTWVJD0FR-X08j2ZGML4pC71OHHk8n8FDu6PtQvXYVQ’ \

–header ‘Content-Type: application/json’ \

–header ‘Cookie: TS01960242=01445fed042047fb727925bb163e4c70eb20df7145e9d33ea47b6ae824c5f921b77f9fe3c2f0f319ba817c46ea5bd77f715b9d6f63’ \

–data '{

"requestId": "c7c44fe7-066f-47dd-b5c5-2626ec84d31d",

"intent": {

    "type": "REGISTRATION"

},

"location": {

    "latitude": "28.644800",

    "longitude": "77.216721"

},

"hipDetails": {

    "hipId": "S_TEST_FACILITY",

    "code": "D74441293084576862S744412"

},

"source": "ANDROID"

Please ensure that you call the on-share api correctly.
Additionally, Please refer the swagger documentation for the same.

Hi @IntegrationSupport, I have tried this but its showing the same error again.
{
“error”: {
“code”: 1500,
“message”: “Error from Plenome001,Error in making call to target system Content type ‘text/html;charset=iso-8859-1’ not supported for bodyType=java.util.HashMap<?, ?>,Please try again”
}
}