Swagger UI - “ TypeError: Failed to fetch” on valid response

后端 未结 9 1448
一生所求
一生所求 2020-12-14 02:27

I\'ve just pulled down the latest Swagger from the Git repo (3.0.19) using: https://github.com/swagger-api/swagger-ui.git and updated my API to use the new version.

9条回答
  •  自闭症患者
    2020-12-14 03:00

    It's because some times your IIS Binding's HTTPS SSL Certificate will automatically goes to Not Selected. So again you have to manually select the SSL Certificates to1 IIS Express Development Certificate1. Below I have mention how to do:

    1. Open IIS Click Default web sites.
    2. In the right side corner you will see a some setting click "Bindings", you will get a Site Binding window.
    3. Then you will get http and https details.
    4. In that Click "https" and click edit, then you will get another window Edit Site Bindings.
    5. In that window check SSL Certificates.
    6. If SSL Certificate = Not Selected select IIS Express Development Certificate.
    7. Then stop and Start the IIS.

    Issue will be solved.

提交回复
热议问题