Investigate the need to decode AMQP body that does not have the content field #18216
Labels
Client
This issue points to a problem in the data-plane of the library.
Event Hubs
help wanted
This issue is tracking work for which community contributions would be welcomed and appreciated
Service Bus
Package:
@azure/event-hubs
The decode() method that is applied on every event that is received over AMQP first attempts to read from
body.content
if the message has a valid type code otherwise reads frombody
.This issue is to investigate if we need this fall back at all. Does AMQP dictate that every message should have a valid type code? Does rhea, the AMQP library we use, support storing anything in
body
directly instead of usingbody.content
?This applies to
@azure/service-bus
as well where we use similar logicThe text was updated successfully, but these errors were encountered: