Stream: dotnet
Topic: Unable to parse html element in STU3 Core
Robert Nutley (Jul 15 2016 at 14:37):
When searching for patients after July 12th using the Get function within the FhirClient, I am getting a 'Hl7.Fhir.Rest.FhirOperationException' thrown. The "text > div" element within the resource that is returned was updated to provide a '<html xmlns=\"http://www.w3.org/1999/xhtml\">' tag instead of a '<div>' tag which it did previously to July 12 and is no longer able to parse it within the Hl7.Fhir.STU2.Core.dll or Hl7.Fhir.STU3.Core.dll. parsing-error.png
Brian Postlethwaite (Jul 15 2016 at 23:30):
This looks more like the server is returning a html error page, and not FHIR content at all.
I'd recommend putting fiddler in between to check.
Brian Postlethwaite (Jul 15 2016 at 23:33):
The most common reasons for this are not connecting to a]the fhir server endpoint, or connecting to a missmatching fhir service.
Not sure where the HAPI was last updated, but there is no official STU3 version, so could be a develop branch change.
Last updated: Apr 12 2022 at 19:14 UTC