Operation was unsuccessful because of a client error (NotFound). Body has no content.

853 views
Skip to first unread message

azurec...@gmail.com

unread,
Dec 7, 2017, 5:00:43 PM12/7/17
to FHIR DOTNET

Hi I am getting error,I cant call my API


My Client

            var endpoint = new Uri("http://localhost:57047/fhir");
            var client = new FhirClient(endpoint);

            var query = new string[] { "resource=Rob&id=25" };
            var bundle = client.SearchById("Patient","50");


"Operation was unsuccessful because of a client error (NotFound). Body has no content.' "
   

MyAPI

        [HttpGet, Route("{ResourceName}")]
        public Bundle SearchById(string resource, string id)
        {
   
       }

Mirjam Baltus

unread,
Dec 8, 2017, 10:04:09 AM12/8/17
to FHIR DOTNET
From the error message I would say that it looks like the server you are searching on does not have the Patient/50, and sends back an error (probably 404 not found).
Reply all
Reply to author
Forward
0 new messages