Endpoint returned a body with contentType 'text/html', while a valid FHIR xml/json body type was expected. Is this a FHIR endpoint?

      Endpoint returned a body with contentType 'text/html', while a valid FHIR xml/json body type was expected. Is this a FHIR endpoint?  

entryComponent.Resource.Id = resEntry.outputId;
var urls = _fhirServer+"//"+entryComponent.Resource.ResourceIdentity().ToString();
Uri ur = new Uri(urls);
var resource = client.Read(ur);
resource = entryComponent.Resource;
var bundle = client.Update(resource);

what’s the html? is it an http stack error somewhere? What was the Accept header?

This is lacking so much detail. Try this first.

1 Like