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.

Session Enabled Queue Message Properties Not Being Populated

See original GitHub issue

When using Azure Service Bus Queues that are session enabled the ServiceBusMessage object is not completely populated. The message_id and message_body are populated, but all other properties are null. This is using a ServiceBusTrigger input binding. The C# version of this function works fine and properties are populated.

Repro steps

1.) Create Python Function App + Azure Service Bus Queue with sessions enabled 2.) Update ServiceBusExtension to 3.1.0 in extensions.csproj 3.) Add “isSessionsEnabled” : true to function.json 4.) Add code in function to log session_id or other properties on the input binding 5.) Put message onto Queue.

Expected behavior

Properties will be populated with properties of message that was put onto the queue.

Actual behavior

1.) Logging will show the correct SessionId in a log message that starts with “Trigger Details:” 2.) Logging message added in code will show properties are null except for message_id and body.

Known workarounds

No known workarounds

Related information

Provide any related information

  • Links to source
  • Contents of the requirements.txt file
  • Bindings used

image image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
anirudhgargcommented, Jun 23, 2020

hello folks - we have identified the missing properties and we are working on adding these. These changes should be rolled out in 3-4 weeks if not earlier.

0reactions
sidkricommented, Feb 15, 2022

It looks like this is still an issue and I created a new issue to track the fix: Azure/azure-functions-python-library#103

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable Azure Service Bus message sessions - Microsoft Learn
To create a queue with message sessions enabled, use the az servicebus queue create command with --enable-session set to true . Azure CLI...
Read more >
Chapter 4 Configuring the Message Queue Client Runtime
If the message is not persistent, no broker acknowledgement message (referred to as “Ack” in property names) is returned by the broker, and...
Read more >
How do you support FIFO message ordering with Azure ...
When a message comes in to a topic/queue which doesn't have partitioning enabled, then FIFO is observed for message delivery*. When you enable...
Read more >
Azure Service Bus Session Enabled Message Processing
Messages without 'SessionId' cannot be sent to Session enabled Queues. However, any message sent without 'SessionId' to a session enabled Topic ...
Read more >
Messaging - Spring
You can use the spring.jms.jndi-name property if you need to specify an alternative location, ... If not, the sessionTransacted flag is enabled.
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