Stream: implementers
Topic: SUSHI Tutorial Error
MASAKI HARADA (Apr 27 2021 at 01:43):
I am trying the SUSHI Tutorial.
I get an error in Step 4: Run SUSHI.
My execution environment is under a proxy.
Do I need to set up a proxy?
C:\fish\fsh-tutorial-master\FishExample>sushi .
info Running SUSHI v1.3.2 (implements FHIR Shorthand specification v1.1.0)
info Arguments:
info C:\fish\fsh-tutorial-master\FishExample
info No output path specified. Output to .
info Using configuration file: C:\fish\fsh-tutorial-master\FishExample\sushi-config.yaml
info Importing FSH text...
info Preprocessed 2 documents with 0 aliases.
info Imported 2 definitions and 0 instances.
info Checking local cache for hl7.fhir.r4.core#4.0.1...
info Did not find hl7.fhir.r4.core#4.0.1 in local cache.
info Downloading hl7.fhir.r4.core#4.0.1...
(node:8268) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:8268) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
error Failed to load hl7.fhir.r4.core#4.0.1: connect ETIMEDOUT 40.68.205.178:80
error Valid StructureDefinition resource not found. The FHIR package in your local cache may be corrupt. Local FHIR cache can be found at <home-directory>/.fhir/packages. For more information, see https://wiki.hl7.org/FHIR_Package_Cache#Location.
Grahame Grieve (Apr 27 2021 at 01:47):
@Max Masnick
Max Masnick (Apr 27 2021 at 09:59):
I don't know the answer myself, but I'm trying to find someone who does...
Chris Moesel (Apr 27 2021 at 13:37):
It looks like you have already successfully installed SUSHI, so you likely already have proxy configured for NPM. But in case anyone else stumbles on this thread, you can configure proxy for NPM like this:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
The issue you're running into, however, is that SUSHI isn't using the proxy when attempting to download the FHIR packages and/or dependencies. If I recall correctly, I think that it should honor http_proxy
and https_proxy
environment variables. So if you can set those in your environment before running SUSHI I think it should work. I haven't used Windows for a while, but last I checked you could do that something like this:
set http_proxy=http://proxy.company.com:8080
set https_proxy=http://proxy.company.com:8080
MASAKI HARADA (Apr 28 2021 at 00:44):
Thank you sir.
I was able to compile it.
but...
Step 5: Generate the Sample IG also resulted in an error.
"_updatePublisher" log
Checking internet connection...
We're offline, nothing to do...
"_genonce" log
Checking internet connection...
We're offline...
.........
Error connecting to build server - running without build (Connection timed out: connect)
Chris Moesel (Apr 28 2021 at 00:50):
@Jose Costa Teixeira -- any tips on how to run the publisher scripts through a corporate proxy?
Krzysztof Wilczek (May 07 2021 at 17:50):
is there some problem with Terminology server today? I'm getting Connect to Terminology Server at http://tx.fhir.org (00:16.0717)
Publishing Content Failed: Unable to connect to terminology server. Error = Error fetching the server's capability statement: Read timed out (00:34.0430) when running genonce.bat
Krzysztof Wilczek (May 07 2021 at 17:51):
it just started working again, probably some intermittent issue...
Last updated: Apr 12 2022 at 19:14 UTC