Not receiving callback on specified URL

I am facing an issue with receiving the callback on my specified URL: https://indiadistro.lite.mybahmni.in.

I used the following PATCH API to set my callback URL:

curl --location --request PATCH 'https://dev.abdm.gov.in/devservice/v1/bridges'
--header 'Content-Type: application/json' \ --data '{ "url": "https://indiadistro.lite.mybahmni.in/hiprovider" }'

However, I am not receiving the callback on the specified URL. When I tried using ngrok, the callback was received successfully.

I have also included the fetch modes API request details below for your reference:

curl --location 'https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes'
--header 'accept: */* '
--header 'X-CM-ID: sbx'
--header 'Content-Type: application/json'
--data-raw '{ "requestId": "f7558575-9bb7-48bd-b474-0ddf141ec3a0", "timestamp": "2023-02-28T11:31:57.032000", "query": { "id": "rimarai12@sbx", "purpose": "LINK", "requester": { "type": "HIP", "id": "bahmni_indiadistro_new" } } }'

Could you please help me resolve this issue and guide me on how to receive the callback on my specified URL?

My CLIENT_ID is SBX_002026 and I am using a Let’s Encrypt SSL certificate for my URL

@IntegrationSupport @Shubhanshu_S please help

Can you check if url is registered successfully. You can check using getServices API. If not then you may re-try to register your end point url using addUpdateServices API. https://sandbox.abdm.gov.in/swagger/ndhm-devservice.yaml

Is there any error you are getting on fetch-modes?

May also refer thread, Guidance for next step

We have tried the above steps.

We can see the callback URL in the getServices response.

{
    "bridge": {
        "id": "SBX_002026",
        "url": "https://indiadistro.lite.mybahmni.in/hiprovider",
        "active": true,
        "blocklisted": false
    },
    "services": [
        {
            "id": "bahmni_indiadistro_new",
            "name": "Bahmni Indiadistro HIU",
            "types": [
                "HIP",
                "HIU"
            ],
            "endpoints": {},
            "active": true
        }
    ]
}

Fetch modes API request:

curl --location 'https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes' \
--header 'accept: */*' \
--header 'X-CM-ID: sbx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "requestId": "26f56e95-58ab-404e-b6e8-f8ff1d36305f",
    "timestamp": "2023-03-03T11:26:07.310000",
    "query": {
        "id": "rimarai12@sbx",
        "purpose": "LINK",
        "requester": {
            "type": "HIP",
            "id": "bahmni_indiadistro_new"
        }
    }
}'

We are getting 202 Accepted response for the above request.

But we are not receiving the auth/on-fetch-modes callback

@IntegrationSupport

thanks my issue has been fixed.

@umair - Hi, can we mark this thread as closed?

Could you please explain how you were able to resolve this issue?

Hi @umair
iam also facing same issue Could you please explain how you were able to resolve this issue?

Hello @shivaveu.
For us, it turned out to be an issue with our SSL certificates. The public key certificate we were using didn’t contain the entire chain of trust that linked our domain’s certificate to the root CA certificate.

After generating the SSL certificates we got the following files:
cert.pem : public key certificate
key.pem: private key
fullchain.pem: public key certificate + intermediate certificates

We replaced cert.pem with fullchain.pem and it worked for us.

2 Likes