DocumentReference POST request timeout

92 views
Skip to first unread message
Assigned to nishant...@gmail.com by desani...@gmail.com

Sean C

unread,
May 3, 2021, 7:17:07 PM5/3/21
to Cerner FHIR Developers
Hi,
My app is sending a DocumentReference PDF containing a jpg image of 1280x940 and there have been no problems with this for a most half a year. But recently over the last 2 weeks, the DocumentReference POST requests I do keeping running into a socket timeout error that I did not get before over the last 4 months when I doing this same operation.

This is the error caught by my app. These is no x-request-id:
    accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    accept-charset: utf-8
    authorization: Bearer ............
    user-agent: HAPI-FHIR/5.1.0 (FHIR Client; FHIR 4.0.1/R4; okhttp/3.8.1)
Http response 0 null
FhirClientConnectionException: Failed to parse response from server when performing POST to URL https://fhir-ehr-code.cerner.com/r4/ecxxxxxxxxxxxx583d/DocumentReference?_format=json&_pretty=true - java.net.SocketTimeoutException: timeout

Were there changes to the settings on your servers regarding how PDF DocumentReferences are handled?

Thanks,
Sean

Fenil Desani (Cerner)

unread,
May 4, 2021, 12:09:33 PM5/4/21
to Cerner FHIR Developers
Hello,

Are there any other response headers you get back?
Do you mind sending your post body, given it does not contain any PHI/PII.

Thanks,
Fenil (Cerner)

BistroElectro Co

unread,
May 4, 2021, 12:50:51 PM5/4/21
to cerner-fhir...@googlegroups.com
I have also been seeing intermittent network fails during PDF write - in my case it behaves like a time out as in it fails after the post has been sending for quite a few seconds.  But it throws a 502 / CORS related error cloudfront xrefs.   I can then often resend the same DocumentReference Post literally duning the same session and it may work the second or third try.

Here's some of the response headers for one of the failed request.
HTTP/1.1 502 Bad Gateway
Content-Type: text/html
Content-Length: 150
Connection: keep-alive
Date: Tue, 04 May 2021 15:28:57 GMT
Vary: Accept-Encoding
X-Cache: Error from cloudfront
Via: 1.1 7ba3caf71ae7a52dd411d1a543e80cd8.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SFO5-C3
X-Amz-Cf-Id: ym1r-jqbJDYX0XewbV751RZIKTSnxUolJ60RL9W-M9ciPQIF_V2PGg==

I hope this helps, (as opposed to confusing the issue).
Justin G.

--
You received this message because you are subscribed to the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cerner-fhir-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/b40e8362-a026-49c1-965c-98ab80afc1a9n%40googlegroups.com.

BistroElectro Co

unread,
May 4, 2021, 12:53:40 PM5/4/21
to cerner-fhir...@googlegroups.com
I should add, in my case I've been sending larger files than the original poster on this thread.   For example the Post,  with the headers included a minute ago - was 3.89 mb.  It's a series of PNGs currently. ( I am working on trimming the docwrite data / image size down considerably if possible )
Justin

Nishanth Namana (Cerner)

unread,
May 12, 2021, 8:22:44 AM5/12/21
to Cerner FHIR Developers
Hello,

We have identified where in our network stack this Error is being thrown and we are currently investigating to find the root cause. 
Appreciate your patience around this issue. I'll post an update once we have the root cause.

Thank you,
- Nishanth (Cerner)

Reply all
Reply to author
Forward
0 new messages