Open zzznz27 opened 2 months ago
Hi @zzznz27 thanks for raising this issue. Here are some questions and keynotes to better understand the issue:
Sorry i had meant to come back and add more context when it occurred again but forgot.
When i hit save on an expired session it seems to call all the managed connectors metadata (possibly as a validation step) before saving but if the auth token has expired i get back a 401. See below:
Here is an example of the calls failing
Request URL: https://management.azure.com//subscriptions/<SubscriptionId>/providers/Microsoft.Web/locations/australiaeast/managedApis/commondataservice?api-version=2018-07-01-preview
Request Method: GET
Status Code: 401 Unauthorized
Remote Address: 4.150.240.10:443
Referrer Policy: strict-origin-when-cross-origin
{
"error": {
"code": "ExpiredAuthenticationToken",
"message": "The access token expiry UTC time '9/23/2024 8:04:31 AM' is earlier than current UTC time '9/23/2024 11:23:34 PM'."
}
}
Hitting save multiple times results in the same calls being made and failing I have also tired re authenticating with AZ accounts and that does not fix the issue
As far as i can tell there is no way to update this authentication to force a save while in this state and any progress made is lost.
If no managed connectors are present then the issue does not appear
A possible feature request, which would be very helpful in Visual Studio Code when using connection keys would be a command to refresh the local connectionkeys. For example: CTRL + SHIFT + P "Azure Logic Apps: Refresh local connectionkeys" which would force an update of the connectionkeys in local.settings.json (if there is a local.settings.json present, otherwise a warning, local.settings.json was not found)
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
No response
Browser
VSCode
Additional context
No response