Azure Logic Apps error While Adding API Apps

瘦欲@ 提交于 2019-12-02 22:08:08

问题


I am doing on POC for getting records from On-Premise SQL By using Logic Apps + API Apps.

I have created SQL Connector in API Apps and also created Logic Apps. But when try to add the SQL Connector API App in Logic App Designer. it is saying

Failed to fetch swagger. Ensure you have CORS enabled on the endpoint and are calling an HTTPS endpoint.

I browsed and found out for setting the Permission Level.

  1. Appsettings - > Set API Definition & CORS enabled.

  2. Authentication/Authorization - > On -> Allow Request (noAction)

  3. Restarted the API Service.

but still getting the same error.

I have browsed the URL "http://ftpconnector.azurewebsites.net/" . it is saying Permission

"Permissions for service \"FTPConnector\" are set to internal"

How can I Change the permission Level. I think if I change only I am able to add the connector in Logic App designer.

Please Assist

Thanks,

Vinoth


回答1:


In the application settings you should change the access level to "public (authenticated)". currently Only other API apps or web apps in the same resource group are allowed to call the API app. In such a case the level will be internal.

"Permissions for service are set to internal but this request was external" for app in same resource group




回答2:


Related issue.

I was accessing Function app, via Logic app, when I got the above error.

Following worked for me:

  1. Function app > Platform features tab > API > CORS > Allowed Origins > (remove all, Save)

  2. Function app > Platform features tab > API > CORS > Allowed Origins > * > Save (that is add * and save)

  3. Function app > Overview tab > Restart

  4. Now the Logic app worked fine.

Hope that helps.



来源:https://stackoverflow.com/questions/37717366/azure-logic-apps-error-while-adding-api-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!