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

MAILCHIMP: update_segments muss max items size von 500 respektieren #1487

Open
amaierhofer opened this issue Jan 8, 2025 · 0 comments
Open
Assignees

Comments

@amaierhofer
Copy link
Contributor

amaierhofer commented Jan 8, 2025

Aktuell werden die Tags der Mailinglisten nicht verlässlich übertragen.

Die wahrscheinliche Ursache ist, dass die update_segments methode ein Limit von 500 Items hat. Somit muss die update_segements Methode in Batches von max 500 items ausgeführt werden, siehe

[12] pry(main)> MailingList.find(2).mailchimp_result.data[:update_segments]
  MailingList Load (1.2ms)  SELECT "mailing_lists".* FROM "mailing_lists" WHERE "mailing_lists"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
=> {:failed=>
  [1,
   1,
   1,
   [{:title=>"Invalid Resource",
     :detail=>
      "Maximum allowed member items exceeded, please provide at most 500 items in members_to_add field or members_to_remove field",
     :status=>400}]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants