TypeError: Cannot read properties of undefined (reading 'send') #27511
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
Sometimes the underlying sender link is undefined when calling
sender.sendMessages
and our error handling and retry logic is invoked due to failure to send during the first attempt. Here's the error thrown and relevant call stack:We are sending internal @azure/service-bus logs to App Insights and we usually see the
sender_closed
andsession_closed
events around the same time.The call stack points to this line of code, where the sender link is assumed to have a value:
azure-sdk-for-js/sdk/servicebus/service-bus/src/core/messageSender.ts
Line 230 in f0ff24f
To Reproduce
Steps to reproduce the behavior:
Expected behavior
_trySend
function and the whole send operation is wrapped incoreAmqp.retry
.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: