-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error TimeoutOverflowWarning: xxxxx does not fit into a 32-bit signed integer when using ManagedIdentityCredential for ServiceBusClient #24003
Comments
Label prediction was below confidence level |
@cloudxpc Thank you for reporting the issue! This is likely a known issue in our identity library. /cc @KarishmaGhiya |
Label prediction was below confidence level |
Hello, can you confirm the version of @azure/identity being used. I believe this was a bug in 3.1.0 version and was fixed in 3.1.1 @cloudxpc |
Hello, i was using 3.1.0 before. but I changed to @azure/identity 3.1.1 and tested, the issue still comes. |
Also experiencing this issue using @azure/identity 3.1.1 |
@KarishmaGhiya: Presumably commit 4ced48e6f0 was intended to fix this in 3.1.1, but the timeline seems confused. That commit notes the fix to the changelog as if it were part of 3.1.1, but then it bumps the package version fields to "3.1.2". Perhaps two commits (the actual fix and associated changelog entry and version bump to 3.1.1, and then a later one to advance the version field again to 3.1.2) got squashed together by mistake? In any case, that commit is not part of the In any case, please cut an |
Hm. That seems not sufficient in any case. Instrumenting a running application, I have chased values upstream from the timeout registration at azure-sdk-for-js/sdk/servicebus/service-bus/src/core/linkEntity.ts Lines 524 to 541 in 191e4ce
tokenObject.expiresOnTimestamp is 3340290306000 (and Date.now() was, in the same instance, 1670101953743 ). That is, expiresOnTimestamp seems to be twice the value of a UNIX timestamp set twelve hours in the future: (3340290306000 / 2 - 1670101953743) / 1000 / 3600 = 11.99979361111111 .
|
Found it after chasing a lot of false leads. #24102 is one possible fix; please feel free to adapt it as appropriate. |
Thanks for the PR @nwf-msr. I shipped the release for @azure/identity 3.1.2 https://www.npmjs.com/package/@azure/identity/v/3.1.2 along with your PR commits. I did the bug fix from a different branch - hotfix/identity_3.1.2 We usually do bug-fixes from a different branch of the name type - |
@nwf-msr @cloudxpc @cmpcdaly Please try version @azure/identity 3.1.2 https://www.npmjs.com/package/@azure/identity/v/3.1.2 for the fix and let me know if you still face any problems. |
Thanks! Testing with 3.1.2 and the warnings seem to be gone and the CPU seems to no longer be spinning. :) |
Hi, thanks for the fix! tried with @azure/identity 3.1.2 and issue seems gone. |
Thanks for the feedback. I will close the issue now :) |
Describe the bug
Using ManagedIdentityCredential to create ServiceBusClient, when receiving messages, keep getting:
Possible cause:
The expiry time of Managed Identity token is 24h by default. It is used in calculation at source code:
this._tokenTimeout = tokenObject.expiresOnTimestamp - Date.now() - 2 * 60 * 1000;
Then I'm not pretty sure where but it is probably used to 'setTimeout' for refreshing token and issue comes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be working fine without errors/warnings.
Screenshots
![image](https://user-images.githubusercontent.com/29766872/204126938-cf9e0cb3-4aa0-4ec3-86b1-b830cee5357a.png)
Additional context
please consider to handle the case that token expiry time is longer than 24h
The text was updated successfully, but these errors were encountered: