From Azure Logic Apps call Azure Web App Swagger API , via the Http+Swagger Operation

MS Techie 2,756 Reputation points
2021-11-07T17:02:08.557+00:00

We have Swagger API deployed on Azure Web App.

When trying to call the Azure WebApp Swagger API from Logic App using the Http+Swagger operation , get the error

147097-image.png

Failed to fetch swagger with error message: Invalid response.Ensure you have CORS enabled on the endpoint and are calling a valid HTTPS endpoint.

I have not set any Authentication or Authorization
Even in the API Settings , i have given path to the .json file as below
https://mysgwebapp.azurewebsites.net/swagger/v1/swagger.json

On the Azure Web App, for CORS, i have put Allowed Origins = * . Please see below pic

147132-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. Mike Urnun 9,792 Reputation points Moderator
    2021-11-10T20:47:59.397+00:00

    Hello @MS Techie - I have confirmed with our Product Group that, as of this writing, the HTTP + Swagger Action is yet to support OpenAPI V3 spec.

    When a v2 spec is provided to the prompt, the Action is working as expected. While the team prioritizes the work of supporting v3 spec, if you feel that we should communicate this detail better via our docs, please consider opening a new issue under the documentation by using the "This page" button found at the bottom of page: HTTP + Swagger doc.

    I hope this info brings clarity to the issue observed above and helps with the planning of your project.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.