smart-on-fhir / client-js

JavaScript client for FHIR
Other
292 stars 209 forks source link

502 Gateway Error on codesandbox #155

Closed fatso83 closed 2 years ago

fatso83 commented 2 years ago

Just wanted to alert that when following the example links to this example and submitting the login, one just gets an error page

HttpError: 502 Bad Gateway
URL: https://launch.smarthealthit.org/v/r3/sim/eyJoIjoiMSIsImIiOiJzbWFydC0xNjQyMDY4IiwiZSI6InNtYXJ0LVByYWN0aXRpb25lci03MTYxNDUwMiJ9/fhir/Patient/smart-1642068

<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

    at humanizeError (https://4e7rl.codesandbox.io/node_modules/fhirclient/lib/lib.js:216:9)
    at async checkResponse (https://4e7rl.codesandbox.io/node_modules/fhirclient/lib/lib.js:94:11)
    at async Promise.all (index 0)
vlad-ignatov commented 2 years ago

Can you please check again? The underlying FHIR servers were down when you posted this. Now that they are up, the example seems to work fine for me.

fatso83 commented 2 years ago

works fine