question

MSTechie-7364 avatar image
0 Votes"
MSTechie-7364 asked MikeUrnun edited

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

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-webappsazure-logic-apps
image.png (58.6 KiB)
image.png (39.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MSTechie-7364 - I'm able to reproduce the issue and see that we aren't able to make it past the Swagger endpoint prompt. I'll dig deeper and share my findings here.

0 Votes 0 ·

1 Answer

MikeUrnun avatar image
0 Votes"
MikeUrnun answered MikeUrnun edited

Hello @MSTechie-7364 - 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.