Skip to content
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

awaiting sendEmail hangs when sending lots of emails #32328

Open
2 of 6 tasks
Jon-Salmon opened this issue Dec 20, 2024 · 0 comments
Open
2 of 6 tasks

awaiting sendEmail hangs when sending lots of emails #32328

Jon-Salmon opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Communication - Email customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@Jon-Salmon
Copy link

  • Package Name: @azure/communication-email
  • Package Version: 1.0.0
  • Operating system: Windows
  • nodejs
    • version: 20
  • browser
    • name/version:
  • typescript
    • version: 5.6.3
  • Is the bug related to documentation in

Describe the bug
When sending lots of emails using the approach documented in the examples from within azure functions, the sendEmail function will never return a completed promise in some situations. I think this may be when hitting the account email sending limit, but it will block for eternity. I would expect it to throw an error in that situation.

To Reproduce

for (let i = 0; i < 100; i++) {
  console.log("Sending email: " + i);
  const poller = await client.beginSend(emailMessage);
  console.log("Waiting for email completion");
  await poller.pollUntilDone();
}

Additional context
This may be related to this other issue #25915 ?

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 20, 2024
@xirzec xirzec added the Client This issue points to a problem in the data-plane of the library. label Dec 20, 2024
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Communication - Email customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants