Skip to content

[service-bus] Unhandled OperationTimeoutError rejections from unguarded receiver.close() calls #39348

Description

@kglstoris
  • Package Name: @azure/service-bus
  • Package Version: 7.10.0-beta.4
  • Operating system:
  • nodejs
    • version: Node 24
  • browser
    • name/version:
  • typescript
    • version: 5.9.3
  • Is the bug related to documentation in

Describe the bug
We are still seeing unhandled promise rejections from OperationTimeoutError when an AMQP session close times out causing application crashes. Similar to #35342, the calling code is wrapped in try/catch and the issue seems to be with the library.

OperationTimeoutError: Unable to close the amqp session local-1_remote-1_connection-2 due to operation timeout.
  at Timeout.actionAfterTimeout (/usr/src/app/node_modules/.pnpm/rhea-promise@3.0.3/node_modules/rhea-promise/dist/lib/session.js:175:32)
  at listOnTimeout (node:internal/timers:605:17)
  at process.processTimers (node:internal/timers:541:7)

The fix for #35342 added a try/catch around several receiver.close() calls, but it looks like two call sites were potentially missed in:

To Reproduce
N/A. We are unable to consistently reproduce the issue

Additional context
Also encountered the issue in version 7.9.5 of @azure/service-bus

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Service Buscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions