-
Notifications
You must be signed in to change notification settings - Fork 14
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
ListMailings -yields error on MailingId being int with error JSON integer 18559069618 is too large or small for an Int32. Path '[0].mailing_id', line 1, position 117. #42
Comments
Hi Kyle,
|
@MilSix Right, but |
agree. Our main account has 37 sub-accounts, where each of 37 (colleges-entities) managing their own campaigns. it's only about 6 or 7 of sub-accounts are currently active. |
@MilSix might be good if you can download and reference the project manually so you can set some breakpoints and investigate. Did the exception thrown change since you updated? |
Exception thrown only when I reach 37th loop. Might be I just going to force it to just use for one sub account and see if I get the correct list. Here is current code. Not sure if I use it correctly, that might be the case too.
|
@MilSix Ah, I see. Doing that many calls (each emmasharpRead being a call, 2 times a loop) could be getting you rate limited. I ran this code on my end and that's what happened. Emma has a 180 calls/minute limit. Seeing as it's getting to about the same point each time, I'm thinking that might be why. Might think about splitting the work into separate calls, holding on the count then doing your Listing later. Also if you use each accounts API key rather than your personal, you don't get flagged for as many call hits. Since each account has unique keys, you only get flagged for the calls within the loop. For larger work you may need to consider going this route. Let me know if that gets you further along. |
Thank you Kyle, that makes sense. Il try to get all sub accounts keys Thought we only have one set keys. for all sub account. |
Hi Kyle.
I got error JSON integer 18559069618 is too large or small for an Int32. Path '[0].mailing_id', line 1, position 117. on mailing_id when try to call emma api listMailings. Should mailing_id be a long integer instead. Not sure if it was emma bug or just from emmasharp. Can you help?
Thanks
MilSix
The text was updated successfully, but these errors were encountered: