Skip to content

get_subscriber_id() causes 429 "Too many requests" API error when total pages > 120 #21

Closed
@modelm

Description

@modelm

The exact number of pages seems to vary, but calling this function is very slow and eventually causes the API to throw a 429 error for an account with lots of subscribers, because it queries the API for all subscribers and searches the results instead of searching the API directly for the provided email.

It is possible to search by email when listing subscribers using the email_address parameter according to https://developers.convertkit.com/#list-subscribers

Adding the email_address parameter to $options in get_subscriber_id() should fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions