Skip to content

Session Enabled Queue Message Properties Not Being Populated #558

@theclouditect

Description

@theclouditect

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions