-
Notifications
You must be signed in to change notification settings - Fork 192
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 API error while running migration and creating DEFAULT USERS #51
Comments
You won't need the admin added to the MailChimp list. In user.rb, the add_user_to_mailchimp method will not be executed if the email address matches ENV['ADMIN_EMAIL'. You may find it easier to run the migration with the default and then change it in the admin dashboard. |
I brought the application to the default with the only difference that I'm using gmail in development as instructed in one your tutorials. For the other part everything should be the same but still getting the error. ROLES and then the callbacks ... Any suggestions? |
Is the ADMIN_EMAIL environment variable set? |
Yes to [email protected]. ADMIN_NAME: First User |
See what happens when you add log statements to the user.rb file:
|
The 2 values are as expected step 1 value is [email protected] I'm sorry to bother you at this hour but haven't found any question on Stackoverflow or google or describing the error. |
Try this:
|
I think that solved the issue since for some reason which i don't know it was taking the ADMIN_EMAIL and comparing it with the email for the second user in the seed.rb file admin email is [email protected] Once I erased the user2 extract the process finished. |
Just a matter of using log statements to debug. |
Thank you and will do from now on. |
I've been trying to run the migration for the db and theres is an error when trying to create the email address provided for the Admin by the ENV variable.
DEFAULT USERS
user: Erik Santiago
rake aborted!
MailChimp API Error: This email address looks fake or invalid. Please enter a real email address (code -100)
I must say that I wanted to user my name and email account to create the Admin but for some reason it is not working.
The text was updated successfully, but these errors were encountered: