question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Blob Queue Trigger not fired when debugging - invalid reference in connections.json

See original GitHub issue

I have messages in a Queue (in a Storage account in Australia East) and have configured my Stateful workflow’s Azure Storage Queue Connector (“When a specified number of messages are in a given queue”) for it (the Connector is pointed at the API in West US2). Even when the message threshold is met the trigger appears not to be fired (in fact is - see below).

Below is what is in the Terminal in VS Code.

==========

Azure Functions Core Tools (2.7.2936 Commit hash: c00b06616a741dcdf70a3061fc415adde84010f8) Function Runtime Version: 2.0.14494.0 AZURE_FUNCTIONS_ENVIRONMENT: Development

Functions:

WorkflowDispatcher: workflowRuntimeTrigger

For detailed output, run func with --verbose flag. Hosting environment: Development Content root path: C:\Work\ImageNoCodeAIProcessor\bin\Debug\netcoreapp2.2 Now listening on: http://0.0.0.0:7071 Application started. Press Ctrl+C to shut down. [2020-10-19T04:00:31.437] Host lock lease acquired by instance ID ‘000000000000000000000000F76D9C0B’.

=====

The Terminal just sits on the above and does not change no matter how many messages I add.

Now…

If I run the the Functions host from the Terminal and provide the --verbose flag I see additional debugging information as follows. I am unable to resolve this issue as the connections.json file is generated by the Logic Apps tooling.

[2020-10-19T04:09:55.378] Workflow trigger ends. flowName='ImageAIProcessor', triggerName='When_a_specified_number_of_messages_are_in_a_given_queue', flowId='029d97381c6343f2a93755782065eb6a', flowSequenceId='08585985270038687248', status='Failed', statusCode='BadRequest', error='{"code":"BadRequest","message":"The API connection reference 'azurequeues' is not referenced correctly. Make sure that all connections used in triggers of type 'ApiConnection' are declared under the 'managedApiConnections' in the connections.json."}', extensionVersion='1.0.0.0', siteName='', slotName='', durationInMilliseconds='253', flowRunSequenceId='', inputsContentSize='129', outputsContentSize='-1', clientTrackingId='08585985262904219640287440771CU00', properties='{"$schema":"2016-06-01","startTime":"2020-10-19T04:09:55.0565651Z","endTime":"2020-10-19T04:09:55.3774055Z","status":"Failed","code":"BadRequest","resource":{"workflowId":"029d97381c6343f2a93755782065eb6a","workflowName":"ImageAIProcessor","runId":"08585985262904219640287440771CU00","triggerName":"When_a_specified_number_of_messages_are_in_a_given_queue"},"correlation":{"clientTrackingId":"08585985262904219640287440771CU00"},"error":{"code":"BadRequest","message":"The API connection reference 'azurequeues' is not referenced correctly. Make sure that all connections used in triggers of type 'ApiConnection' are declared under the 'managedApiConnections' in the connections.json."}}', triggerType='ApiConnection', flowScaleUnit='cu00', triggerKind='', sourceTriggerHistoryName='', failureCause='', activityId='230082c3-c400-42f9-9185-e03862997e55'.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
rarayuducommented, Oct 20, 2020

We found the issue, will prepare the fix and release it as part of our next release.

1reaction
rarayuducommented, Oct 20, 2020

Sure, please share at “rarayudu@microsoft.com”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure function not triggering with queue binding
json but the deployed function won't trigger. Am I doing something wrong here? I have following FunctionStartup : using Microsoft.Azure.
Read more >
Function app not getting triggered by ASB Queue
Am trying to trigger a function app with message fromASB Queue. Currently using connection string to establish the connection and there are ...
Read more >
Azure Queue storage trigger for Azure Functions
Use the queue trigger to start a function when a new item is received on a queue. The queue message is provided as...
Read more >
Azure Blob storage trigger for Azure Functions
The blob trigger handles failure across multiple retries by writing poison blobs to a queue on the storage account specified by the connection....
Read more >
Troubleshoot and diagnose workflow failures - Azure Logic ...
Troubleshoot and diagnose workflow failures in Azure Logic Apps ... If the trigger doesn't fire, try the following steps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found