LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

Create connection to ASB peek-lock trigger fails with 'Failed to create connection: Unknown error'

Open jeanpaulsmit opened this issue 2 years ago • 18 comments
trafficstars

Describe the Bug with repro steps

  1. Create new Logic App in VSCode
  2. Create Service bus "When messages are available in a queue (peek-lock)" trigger
  3. Specify name, type 'connectionstring' and populate that field
  4. Error shows up

What type of Logic App Is this happening in?

Standard (VSCode)

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

n/a

Additional context

The error is not providing any information about the why, so not really helpful.

Actually, it reminds me of the infamous Sharepoint error 'an error occurred'.

I found out later that localauth on ASB was disabled, so it made sense it couldn't connect.

However, it would be much more helpful when the error would not say 'Unknown error' but a more descriptive one.

Maybe the VSCode extension receives some kind of 401, which could at least guide the dev in that direction.

AB#25485707

jeanpaulsmit avatar Oct 13 '23 22:10 jeanpaulsmit

Hi @jeanpaulsmit, we've added a decent bit of improved error checking and propagation since you reported this issue, can you check to see if this is resolved for you or if we need to take another look at it?

rllyy97 avatar Apr 11 '24 15:04 rllyy97

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

github-actions[bot] avatar Apr 14 '24 15:04 github-actions[bot]

@rllyy97 thanks for getting back about this topic. I just tested and there is no difference in response for me: image

I'm using v3.0.3 of the extension, which I believe is the latest at the moment.

jeanpaulsmit avatar Apr 16 '24 12:04 jeanpaulsmit

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

github-actions[bot] avatar Apr 19 '24 14:04 github-actions[bot]

This issue has been closed because the information requested wasn't provided within 7 days.

github-actions[bot] avatar Apr 26 '24 14:04 github-actions[bot]

@rllyy97 did we do investigation on this one or should it be reopened?

Eric-B-Wu avatar Apr 26 '24 14:04 Eric-B-Wu

I did not investigate, reopening

rllyy97 avatar Apr 26 '24 14:04 rllyy97

I am hitting the same issue but with "Send a message" action. Is there any workaround that we could potentially try while the team is working on fixing the issue? Maybe create the connection in portal and use that?

piyushpaliwal avatar Jul 12 '24 13:07 piyushpaliwal

I have same issue (screenshot below). Expectation here, by using Managed Identity, would be to use currently logged-on user in vs code while debugging locally and use Managed Identity while running in Logic App (similar to what happen when using DefaultAzureCredentials in dotnet). Is this correct?

image

Banchio avatar Oct 04 '24 10:10 Banchio

I was able to go ahead by creating the connection manually in Azure logic apps and then pasting it in the connections.json file. My hope on the managed identity does not work unfortunately.

Banchio avatar Oct 04 '24 11:10 Banchio

@rllyy97 The bug/feature?, in my case, is really that actions are always forced to choose a topic from a dropdown, which is populated through the connection. But a connection might not be authorized to access to all topics/queues.

For security reasons we want to lock down our apps in the service bus as much as possible, and we therefore use connectionstring directly from a specific topic. Currently these service bus actions only work when a connectionstring is from the service bus shared access policies and not from a shared access policy on a topic or a queue... might be by design, but please consider security and the possibility to specify a topic (without the need for a dropdown).

Below is my earlier text before I realized that the issue was with the dropdown

I got the same error using Connection String, "Failed to create connection: Unknown error" when creating an In-app action "Complete the message in a topic subscription" (I also tried to create Service bus In.-app trigger for reading messages).

I used (the primary) "Connection String" for both In-app and non In-app.

The non In-app works. So, at least for me, this is a Service bus In-app error.

In-app Image

Non In-app Image Image

MrRosendahl avatar Nov 06 '24 08:11 MrRosendahl

Hi all, @ccastrotrejo and I will take a look at this issue soon, sorry you've had to wait so long. We'll check it out and let you know what we find soon, thank you for the helpful information you've added!

rllyy97 avatar Nov 08 '24 21:11 rllyy97