Failed to call FHIR service error

259 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

dhanesh ov

unread,
May 5, 2021, 5:26:19 AM5/5/21
to Cerner FHIR Developers
Hi Team,

I am following tutorial https://engineering.cerner.com/smart-on-fhir-tutorial/#introduction and trying to test my sample app which is forked as mentioned in the documentation. Followed all instructions mentioned in documentation.

While testing the app, i am getting 'Failed to call FHIR service' error

Please refer attached screen shot for console logs.


Please help to resolve this error.

Thanks and Regards
Dhanesh


Failed to call FHIR service error.JPG

Diptnndu Dtta

unread,
May 6, 2021, 8:46:34 AM5/6/21
to Cerner FHIR Developers
Hello,

I am also getting the same error that has been already reported here.

The error is from the "index.html" file

    <script>
      extractData().then(
        //Display Patient Demographics and Observations if extractData was success
        function(p) {
          drawVisualization(p);
        },

        //Display 'Failed to call FHIR Service' if extractData failed
        function() {
          $('#loading').hide();
          $('#errors').html('<p> Failed to call FHIR Service </p>');
        }
      );
    </script>


If you check the Network Tab you will find that the error is  "Invalid Token".
Screenshot attached.

So if the Authorization is successful and the Cerner Authorization server
returns a Token, and that token is used in subsequent API call, then why
is the token considered invalid?

Regards,

Diptendu Dutta
InvalidToken.png

Fenil Desani (Cerner)

unread,
May 6, 2021, 10:00:06 AM5/6/21
to Cerner FHIR Developers
Hello,

Please provide x-request-id returned in the response header of the failure.

Thanks,
Fenil (Cerner)

Diptendu Dutta

unread,
May 6, 2021, 11:34:19 AM5/6/21
to cerner-fhir...@googlegroups.com
The required information has already been provided here:

https://groups.google.com/g/cerner-fhir-developers/c/ke3a2C39u_U

Regards,

Diptendu Dutta

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/dmo4j05JUEE/unsubscribe.
To unsubscribe from this group and all its topics, 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/c1104d96-71b7-4b10-959a-5b5abbd3da96n%40googlegroups.com.

dhanesh ov

unread,
May 9, 2021, 12:51:11 PM5/9/21
to Cerner FHIR Developers
Hi,

Here is the x-request-id returned by the response

X-Request-Id: 7137e0e7-a557-4a5b-a559-437e9da76d30


dhanesh ov

unread,
May 10, 2021, 10:13:43 PM5/10/21
to cerner-fhir...@googlegroups.com
Team

Any update on this?

Thanks & Regards
Dhanesh

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/dmo4j05JUEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-devel...@googlegroups.com.

dhanesh ov

unread,
May 11, 2021, 1:48:07 PM5/11/21
to cerner-fhir...@googlegroups.com
Can someone help why the official sample app is throwing error. 

dhanesh ov

unread,
May 11, 2021, 11:07:21 PM5/11/21
to Cerner FHIR Developers
Hi guys,

I have a demonstration planned and this issue is stopping the progress..can you pls help here..i tried all options such as  dstu/r4, making sure no scope mismatch etc and no option left out from my side..looking for your help badly.

Haitai Ng

unread,
May 12, 2021, 3:01:12 PM5/12/21
to Cerner FHIR Developers
I had it working a few weeks ago, however now I am experiencing the same error. It is possible something may have changed on Cerner's side?

Vaibhav Satam

unread,
May 12, 2021, 3:25:17 PM5/12/21
to Cerner FHIR Developers
I am facing the similar issue 

X-Request-Id
5deac249-6198-48e5-9c9e-f75748ed32aa


Headers: Authorization

Response: {"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"login","diagnostics":"Bearer realm=\"fhir-ehr-code.cerner.com\", error=\"invalid_token\"","expression":["http.Authorization"]}]}

Fenil Desani (Cerner)

unread,
May 13, 2021, 2:54:24 PM5/13/21
to Cerner FHIR Developers
Hello All,

We were troubleshooting this issue since past week and are now able to recreate this issue internally. We seem to have found the root-cause, where certain API calls, both for DSTU2 and R4, are failing.
We have engaged the relevant parties to mitigate the issue.

While we are aware of the impacts of this on your daily work, we are trying to resolve the issue ASAP. Thank you all for your patience!

Jack Mollart

unread,
May 18, 2021, 8:31:05 AM5/18/21
to Cerner FHIR Developers
Hello,

Are there any updates on this issue? 

Kind Regards,

dhanesh ov

unread,
May 21, 2021, 6:41:15 AM5/21/21
to Cerner FHIR Developers
Any update here?

Fenil Desani (Cerner)

unread,
May 24, 2021, 1:55:01 PM5/24/21
to Cerner FHIR Developers
Hello,

The fix for this issue is planned to be deployed on 5/25 EOB.
Thank you all for your patience!

Fenil Desani (Cerner)

unread,
May 26, 2021, 9:19:12 AM5/26/21
to Cerner FHIR Developers
This should have been resolved. Please test again!

dhanesh ov

unread,
May 26, 2021, 9:30:56 AM5/26/21
to cerner-fhir...@googlegroups.com
Yes i tested. Its working now. Thank you Cerner team. 

Duy Nguyen

unread,
Jan 2, 2022, 11:53:55 PM1/2/22
to Cerner FHIR Developers
Hi all,

I got the same error "Failed to call FHIR Service" when I tried to follow the tutorial 

I wonder if you guys can tell me how you fixed this issue.

These are my X-Request-ID

X-Request-Id : 5982056e-9455-422a-8ef3-8eaf9f314a70

X-Request-ID: 708ff285-14e7-4866-b569-3f500f9eece2


Thank you,
~Duy

Fenil Desani (Cerner)

unread,
Jan 3, 2022, 12:23:51 PM1/3/22
to Cerner FHIR Developers
Hello Duy,

The original issue mentioned on this thread has been resolved. If you continue to see the similar issue, please start a new thread.

Thanks,
Fenil

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages