-
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
sendEmail hangs forever #25915
Comments
@deyaaeldeen for LRO discussion. |
@offbeatful Thanks for reporting this! I am trying to reproduce this issue in my local, could you help with details:
|
Yes, that is correct. I am basically replacing the code in node_modules in order to make code actually send emails and not hang. |
@offbeatful Could you try to repro the issue and then share the logs with the fix you mention? import { setLogLevel } from "@azure/logger";
setLogLevel("verbose"); I tried this in my local and as you said everything seems working for the first 50 emails, but after that it stopped working and simply hangs. Then I debugged the code and found the server side has complained with |
Hi @offbeatful. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
It may be a case, as I requested to increase the quota and haven’t experienced the issue before. I will try sending 100 emails and report back soon. |
@offbeatful Thanks for the info! If this is the case for server-side We may prefer to close this issue and do you have any concern? |
Hi @offbeatful. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
Hi @offbeatful, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
Describe the bug
sendEmail hangs forever. Exact steps are unknown except the issues start occurring after sending 50+ emails.
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
Method should return always.
Additional context
The suspect is LRO lib (@azure/core-lro 2.5.3) at dist/index.js:961
It seems that if
this.pollOnce
return resolved promise, then clearPollOncePromise is executed immediately, leaving this.pollOncePromise as undefined. Changing the method to something like this, solves the problem.Also not sure if
clearPollOncePromise
should be executed twice.The text was updated successfully, but these errors were encountered: