/v0.5/consent-requests/on-init returns Error in making call to target system Not enough variable values available to expand hipEndpoints

We are experiencing an issue with /v0.5/consent-requests/on-init request. This issue seems really weird because this seemed to work in our Node JS implementation but not in our C# implementation.

We are posting the following to /v0.5/consent-requests/init

{
  "requestId": "88a54296-9d78-4629-b76e-3b7d78cd86ef",
  "timestamp": "2023-03-21T15:51:56.874Z",
  "consent": {
    "purpose": {
      "text": "Document linking from Medblocks",
      "code": "CAREMGT",
      "refUri": "https://medblocks.org/"
    },
    "hiu": {
      "id": "SBX_REDACTED"
    },
    "patient": {
      "id": "redacted@sbx"
    },
    "requester": {
      "name": "Medblocks HIU",
      "identifier": {
        "type": "REGNO",
        "value": "MH1001",
        "system": "https://www.mciindia.org"
      }
    },
    "hiTypes": [
      "OPConsultation",
      "Prescription",
      "DischargeSummary",
      "DiagnosticReport",
      "ImmunizationRecord",
      "HealthDocumentRecord",
      "WellnessRecord"
    ],
    "permission": {
      "accessMode": "VIEW",
      "dateRange": {
        "from": "2020-12-04T06:08:07.512Z",
        "to": "2023-03-21T20:51:56.874Z"
      },
      "dataEraseAt": "2023-03-31T15:51:56.874Z",
      "frequency": {
        "unit": "HOUR",
        "value": 1,
        "repeats": 0
      }
    }
  }
}

The response on /v0.5/consent-requests/on-init was

{
        "requestId": "3d948f11-1589-48f1-9603-1e6ebb56fc85",
        "error": {
            "code": 2500,
            "message": "Error in making call to target system Not enough variable values available to expand '\\\"hipEndpoints\\\"'"
        },
        "timestamp": [
            2023,
            3,
            21,
            15,
            49,
            4,
            811565000
        ],
        "resp": {
            "requestId": "73545b13-5999-48f0-b0cf-c501a267bc5b"
        }
    }

This error is not documented anywhere and I could not find a similar issue on devforum either.
Please let us know why this is happening ?

Regards
Poorna

hi Poorna,

did you resolved this issue. I am facing error while fetching consent artefacts. Pls let me know.