Stream: hapi
Topic: Failed to fetch API definition
Joe Flack (Feb 06 2022 at 01:45):
Joe Flack: I've fixed my FHIR base URL, but I'm still getting "Failed to fetch API definition". This is a fresh HAPI deployment... can anyone help?
Screen-Shot-2022-02-03-at-4.22.46-PM.png
Joe Flack: http://20.119.216.32:8080/fhir/swagger-ui/
Jens Villadsen (Feb 06 2022 at 07:14):
Looking at your conformance on http://20.119.216.32:8080/home?encoding=null&pretty=false it looks okay to me
James Agnew (Feb 06 2022 at 15:35):
Your CapabilityStatement is missing the /fhir
part of your server base URL. That's definitely why OpenAPI isn't working.
http://20.119.216.32:8080/fhir/metadata#L15
See here for strategies to fix this: https://hapifhir.io/hapi-fhir/docs/server_plain/introduction.html#server-base-url-web-address
Joe Flack (Feb 07 2022 at 22:05):
Thank you so much! I was a little confused by the docs. It said to put the URL where my app was hosted. It is hosted at and loads without the /fhir/ bit, so I think the docs area bit misleading /confusing there. I appreciate the response! it works now
Last updated: Apr 12 2022 at 19:14 UTC