Skip to content

Max number of requests #67

@RBerntsen

Description

@RBerntsen

Hi @nufyoot (and everyone else).

I have inherited a solution with an integration to Campaign Monitor. The user can subscribe to multiple lists which results in a foreach loop like this:

                AuthenticationDetails authenticationDetails = new ApiKeyAuthenticationDetails(apiKey);

                foreach (var selectedListId in model.SelectedListIds)
                {
                    var subscriber = new Subscriber(authenticationDetails, selectedListId);

                    var customFieldsList = new List<SubscriberCustomField>
                    {
                        CreateSubscriberCustomField(FormConstants.Position, model.Position),
                        CreateSubscriberCustomField(FormConstants.PlaceOfWork, model.PlaceOfWork)
                    };

                    model.Name = model.FirstName + " " + model.LastName;

                    subscriber.Add(model.Email, model.Name, customFieldsList, true, ConsentToTrack.Yes);
                }

The first couple of submits goes fine but after some iterations it starts throwing a "429 too many requests". I can't see any headers in the response that tells me about a limit or anything. I wonder if there's a known limit of requests you can do in a certain time frame? I have been looking at the documentation but I don't see any regarding this issue and furthermore I can't see if this should have been structured differently.

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