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

miro:mailchimp not working when audit-argument-checks installed #17

Closed
rjmoggach opened this issue Dec 10, 2014 · 5 comments
Closed

miro:mailchimp not working when audit-argument-checks installed #17

rjmoggach opened this issue Dec 10, 2014 · 5 comments

Comments

@rjmoggach
Copy link

just a heads up of the conflict...

@themeteorchef
Copy link
Owner

Is there any error output in the console/terminal?

@rjmoggach
Copy link
Author

@themeteorchef
Copy link
Owner

@mogga Reading that, are you calling to the Mailchimp API/package somewhere in your code producing this error? If so, you'll want to make sure you use the check package (also a part of Base) to validate your data. For example:

Meteor.methods({
   myMethodName: function(argumentToCheck){
     // Check your argument against the _expected_ type. For example, if this were a string of text:
    check(argumentToCheck,String);
    // Run your MailChimp code after this. Meteor will stop running the method if ^ check fails, and continue if it succeeds.
   }
});

That may be it (not sure if I've seen a package tussle with AAC yet or not). If you're passing an object over, try check(argumentToCheck,{key: valueType, key: String}); where valueType is equal to the type of value you expect. You can find a list of values to test for here.

I'll keep this open to see if I can help resolve it on my end :)

@themeteorchef
Copy link
Owner

@mogga any update on if this was the fix or still having issues?

@themeteorchef
Copy link
Owner

Looks like this was fixed in the package referenced, going to go ahead and close this.

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

2 participants