Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.08k stars 1.2k forks source link

[core-rest-pipeline] NodeHttpClient didn't remove EventListener correctly caused MaxListenersExceededWarning #31026

Open MaryGao opened 1 month ago

MaryGao commented 1 month ago

Describe the bug See discussion. There are two issues

How to reproduce:

Expected behavior The above two would cause the removal action would not be called here.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 month ago

@deyaaeldeen @jeremymeng @joheredi @maorleger @mpodwysocki @timovv @xirzec

github-actions[bot] commented 1 month ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

mpodwysocki commented 1 month ago

@MaryGao I'm trying to fix via https://github.com/Azure/azure-sdk-for-js/pull/31077

jeremymeng commented 1 month ago

@MaryGao I'm trying to fix via #31077

There's still the issue for an already completed stream? Those events will not be fired thus the promise not resolving.