FHIR Chat · swagger error · implementers

Stream: implementers

Topic: swagger error


view this post on Zulip Mounika (Dec 13 2018 at 12:17):

Hi all,
I am getting the below error while performing the operation using swagger ui. When I am performing the same operation in postman, it is working fine. Can anyone suggest me how to resolve this.
swagger-error.PNG

view this post on Zulip Nathan Hall (Dec 13 2018 at 15:57):

A lot of the time I see that error when you have http/https selected incorrectly in the top left corner of the swagger page.

view this post on Zulip Mounika (Dec 14 2018 at 07:37):

Yes @Nathan Hall We selected the correct one only as you said. But unable get the response.

view this post on Zulip Yunwei Wang (Dec 14 2018 at 15:43):

@Mounika Which swagger UI?

view this post on Zulip Mounika (Dec 15 2018 at 04:51):

@Yunwei Wang I am using both the swagger 2.0 and 3.0 version, but getting the same error.

view this post on Zulip Yunwei Wang (Dec 17 2018 at 14:47):

You can use any network tracking tools, such as Fiddler, to compare two request and see what the difference is.

view this post on Zulip Lakshmi Thrivarna (Jan 10 2019 at 12:43):

Hi All,
I am facing this issue "[CORS] The origin 'file://' did not find 'file://' in the Access-Control-Allow-Origin response header for cross-origin resource at "http://localhost:8470/EmpiPatient/Patient?identifier=2.16.840.1.113883.4.1%7CSHRU-ID" while running the swagger file. Can Any One suggest me how to resolve this issue.
Thank you.

view this post on Zulip Yunwei Wang (Jan 10 2019 at 23:19):

Without knowing details, here is a general instruction: https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/cors.md


Last updated: Apr 12 2022 at 19:14 UTC