Closed zzznz27 closed 2 weeks ago
Another example with the azure tables managed api connector
Request URL: https://management.azure.com//subscriptions/@%7Bappsetting('WORKFLOWS_SUBSCRIPTION_ID')%7D/providers/Microsoft.Web/locations/@%7Bappsetting('WORKFLOWS_LOCATION_NAME')%7D/managedApis/azuretables?api-version=2018-07-01-preview
Request Method: GET
Status Code: 400 Bad Request
Remote Address: 4.150.240.10:443
Referrer Policy: strict-origin-when-cross-origin
Hi @zzznz27 thanks for raising this issue. Usually this happens when the appsetting is not in your local.settings.json file.
Could you pleas verify the WORKFLOWS_SUBSCRIPTION_ID
indeed exists in your local.settings.json file?
This might also happen when the WORKFLOWS_SUBSCRIPTION_ID
is an empty string. (this happens when user skips to use azure resources)
There are 2 ways to solve this:
WORKFLOWS_SUBSCRIPTION_ID
from the localsettings and re-launch designerUse connectors from Azure
command in the logic apps extensionI have confirmed the app setting is there and was set automatically when using the 'Use connectors from Azure' option
If I take the value out and put it in the connectors.json it then throws the same error for WORKFLOWS_RESOURCE_GROUP
If I hard code both values into connections.json it works
@zzznz27 Which version of the extension are you using?
I am on the latest version
V4.57.6
-------- Original message -------- From: Carlos Emiliano Castro Trejo @.> Date: 24/8/24 8:47 am (GMT+10:00) To: Azure/LogicAppsUX @.> Cc: Zach Herb @.>, Mention @.> Subject: Re: [Azure/LogicAppsUX] Connection does not substitute appsettings when calling connector (Issue #5481)
@zzznz27https://github.com/zzznz27 Which version of the extension are you using?
— Reply to this email directly, view it on GitHubhttps://github.com/Azure/LogicAppsUX/issues/5481#issuecomment-2307897320, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJHK74CXGHJQVBRDVZFBCJDZS63WJAVCNFSM6AAAAABM7MXKISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXHA4TOMZSGA. You are receiving this because you were mentioned.Message ID: @.***>
@zzznz27 I can't figure out another way on why this could be happening unless your local.settings.json doesn't have the settings. Do you mind sharing with me your project zipped to my email? ccastrotrejo@microsoft.com
Sure i will send it shortly I will remove the authorization secret values for security as well
@zzznz27 Thanks for sharing the project with me. I took a look and it does seem that there is a missing implementation on the vscode side. I will make the proper changes to match Azure Portal behavior. Thanks!
@zzznz27 In the meantime, please keep using your workaround
Describe the Bug with repro steps
What type of Logic App Is this happening in?
Standard (VSCode)
Which operating system are you using?
Windows
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
Custom Connector not loading
Browser
VScode
Additional context
I have seen this issue occur with both Custom API connectors and managed Api connectors
Looking at the console i can see the values have not been substituted