Skip to content

TeamsActivityHandler: 429 too many requests when adding an AD group to a team #5467

@martinlarosa

Description

@martinlarosa

When using this TeamsActivityHandler and then adding an Active Directory group to a Team where the bot is after around 75 calls to this line, it receives a 429 and then the bot throws an exception.

newMemberInfo = await TeamsInfo.GetMemberAsync(turnContext, memberAdded.Id, cancellationToken).ConfigureAwait(false);

Ideally I would like to not have an exception and that the throttling happens appropriately. But maybe there's also a workaround for my scenario? I just care about overriding OnTeamsMembersAddedAsync to detect when the bot is added to the Team, so actually this loop through all the added members is unnecessary for my goal. Is there a different way of achieving this and circumventing the bug.

Metadata

Metadata

Labels

Area: TeamsThe issue is related to Teams supportBot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions