Skip to content

fixed get_mentions wait if rate limit exceeded and retry#30

Open
HurinHu wants to merge 1 commit intoBrandwatchLtd:masterfrom
HurinHu:largeMentionsFixed
Open

fixed get_mentions wait if rate limit exceeded and retry#30
HurinHu wants to merge 1 commit intoBrandwatchLtd:masterfrom
HurinHu:largeMentionsFixed

Conversation

@HurinHu
Copy link

@HurinHu HurinHu commented Mar 10, 2022

When getting a query with large number of mentions, it will reach rate limits and stop with exception. The fixed solution will catch the exception and wait for default 30 seconds(or pass parameter "__delay=") and continue to get mentions, if it is still rate limit exceeded, it will wait for another 30 seconds and retry again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant