FHIR Chat · Invalid UTF-8 · hapi

Stream: hapi

Topic: Invalid UTF-8


view this post on Zulip Grahame Grieve (Oct 30 2018 at 21:10):

@James Agnew if I post a $match operation to the server https://testapp.hospitalitaliano.org.ar/masterfile-federacion-service/fhir which is a HAPI server, the response I get back is

{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"processing","diagnostics":"El nombre está vacío"}]}

view this post on Zulip Grahame Grieve (Oct 30 2018 at 21:11):

however: this is not valid UTF-8 encoding. Specifically, it is ANSI not UTF-8. here's the actual bytes that comes back

view this post on Zulip Grahame Grieve (Oct 30 2018 at 21:11):

encoding.bin

view this post on Zulip Grahame Grieve (Oct 30 2018 at 21:11):

but the header says it is UTF-8

view this post on Zulip Grahame Grieve (Oct 30 2018 at 21:11):

(as it should)

view this post on Zulip Grahame Grieve (Nov 02 2018 at 20:59):

@James Agnew ping on this

view this post on Zulip James Agnew (Nov 05 2018 at 08:42):

@Grahame Grieve Hmm, I am unable to reproduce this locally. Do you have any details around how the error is generated internally? (i.e are they throwing an InvalidRequestException, which would be the recommended way to do this, or are they manually serializing the response, which could explain it..) Or are there any proxies between HAPI and the outside world?

view this post on Zulip Grahame Grieve (Nov 05 2018 at 20:30):

I don’t know. I’ll chase this up by email


Last updated: Apr 12 2022 at 19:14 UTC