hl7au / au-fhir-core-inferno

This is an Inferno test kit for the AU Core Implementation Guide
https://inferno.hl7.org.au
Apache License 2.0
9 stars 3 forks source link

Invalid HTTP response 503 from https://tx.dev.hl7.org.au #192

Open dattachandan opened 2 months ago

dattachandan commented 2 months ago

Hi team

When I ran the container locally(can't see on the remote sever on Cloudwatch), I see exceptions during validation , are these intermittent and is there a way to run the TX server locally?

image

Attaching a sample log below

httpResultException-503-fhir-TX.log

projkov commented 2 months ago

Hello Chandan @dattachandan

It looks like there was a temporary problem with the accessibility of the terminology server. Now it should work without any issues.

Unfortunately, we don't have the option to run the TX server locally.

I appreciate your interest in our test kit!

projkov commented 2 months ago

@dattachandan Users can set any TX server URL using a variable called TX_SERVER_URL. By default value is https://tx.dev.hl7.org.au/fhir

projkov commented 2 months ago

@mjosborne1

Hello Michael. Is there any way to run the ontoserver locally?

dattachandan commented 2 months ago

@projkov thanks for the update, will be good to know if a AU based terminologies server can be set locally especially when we do internal CI builds for any integration testing

lawley commented 2 months ago

I don't know that running a local Ontoserver will help with the above. The request with the error is to a non-FHIR, Grahame-specific endpoint (.../tx-reg/...). This looks more like a bug in the validator

lawley commented 2 months ago

Looking at the code in org.hl7. fhir.r5. terminologies .client. TerminologyClientManager it seems that setting IGNORE_TX_REGISTRY=true should avoid any attempt to use the tx registry

ir4y commented 2 months ago

@projkov please have a look and test ☝️

projkov commented 2 months ago

Looking at the code in org.hl7. fhir.r5. terminologies .client. TerminologyClientManager it seems that setting IGNORE_TX_REGISTRY=true should avoid any attempt to use the tx registry

@lawley Hello Michael. Thank you for the advice.

Did you know something about how to change the value of this variable through cliContext? I can't find any information in the docs, or code samples.

ir4y commented 1 month ago

It looks like a constant that could not be changes dynamically: https://github.com/hapifhir/org.hl7.fhir.core/blob/dd01e008ca6fdc4742293f38a9c99d77c7e33d74/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/client/TerminologyClientManager.java#L89

jwjahns commented 2 weeks ago

Hello, I also ran into this when attempting to deploy locally, and found that setting noEcosystem true in the cli_context blocks (here and here) seems to resolve this. In the Java validator code, noEcosystem eventually sets useEcosystem, which is checked in the same places that IGNORE_TX_REGISTRY is checked. However, I couldn't find documentation on this noEcosystem parameter, so I'm not entirely sure if this is the intended usage.

(note that this requires a Java validator version of at least 6.3.6 - see "Dont use tx-registry when manual terminology server is set")

ir4y commented 2 weeks ago

@projkov Could you please check?