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

API Rate Limit Errors during Expire Memberships #29

Open
ermGit opened this issue Jan 21, 2021 · 0 comments
Open

API Rate Limit Errors during Expire Memberships #29

ermGit opened this issue Jan 21, 2021 · 0 comments

Comments

@ermGit
Copy link
Contributor

ermGit commented Jan 21, 2021

The membership site that I am dealing with has around 30 email lists and 10 membership levels because it has been around for a while. If a user has two memberships and they expire then the PmPro chron expire task takes care of unsubscribing the User.

However, if the Expire Memberships Chron job has more than a total of 2 memberships to expire then this integration produces Rate Limit API errors with the setup listed above. I had to implement my own error messaging in the Catch part of this integration to figure it out. From what I found, this integration loops through all the email lists in the system for some reason making API call(s) in order to unsubscribe a User.

It seems like this is rather inefficient. Perhaps a bulk unsubscribe endpoint would be good. Also, it would be nice if the "Catch" code was implemented by the plugin with a switch to show/log errors to stdout or a file. Now if we update the plugin my painstakingly written error catch code will be wiped out.

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

No branches or pull requests

1 participant