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

Avoids retrying on 403s #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

emorell96
Copy link

@emorell96 emorell96 commented Dec 7, 2021

This pull request is a fix for retrying on 403s. From a consumer perspective retrying on 403s is extremely expensive since Pubnub charges per transaction even if it's a 403. So this fix that issue by checking the pnstatus and only retrying is the status is not AccessDeniedCategory.

If it is access denied category, then it announces it so that the user can implement its own retry logic.

Fixes: #122

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.

The sdk retries in 403s leading to huge billings.
1 participant