Internal Server Error while making registering HIP and HIU services

While trying to register HIP and HIU service using this curl:

curl --location --request PUT 'https://dev.abdm.gov.in/devservice/v1/bridges/services' --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer your-access-token-from-gateway-session' --data-raw '{"id":"unique-hip-id","name":"Your-facility-name","type":"HIP","active":true,"alias":["EG"]}'

Receiving the following error:

{
    "timestamp": "2022-01-10T07:46:07.280+0000",
    "path": "/v1/bridges/services",
    "status": 500,
    "error": "Internal Server Error",
    "message": "JSON decoding error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 10] (through reference chain: java.util.Properties[\"error\"])",
    "requestId": "13687096-81"
}

my client id: SBX_001259

Someone please help @Shubhanshu_Shukla

Hey @Curelink,

what have you passed in header?
make sure that the gateway session token is not expired

Hey @Shubhanshu_Shukla, thanks for the revert back,


I’m passing the correct access token after refreshing it, I’ve checked it. If the access token would’ve expired, it shows token verification failed message.