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

No Abandoned Cart Data Sent #220

Closed
maderlock opened this issue Feb 26, 2018 · 8 comments
Closed

No Abandoned Cart Data Sent #220

maderlock opened this issue Feb 26, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@maderlock
Copy link

maderlock commented Feb 26, 2018

Issue Description

Preconditions

  1. Magento 2.1.9
  2. Extension v 1.0.27
  3. Store connected (can see both ends)
  4. Admin says that everything is synced
  5. Ecommerce data says is synced and abandoned carts turned on
  6. Abandoned cart series exists and active - was working under MageMonkey

Steps to reproduce

  1. Create cart, add email, abandon cart
  2. Run ebizmarts_ecommerce cron job

Actual Result

  1. [Mailchimp_Error]
    Resource Not Found : The requested resource could not be found.

Additional information

When running the cron manually and adding in some extra logging I can see that the error is caused when fetching updates to promo rules:

[Mailchimp_Error]
ecommerce/stores/[storeIDredacted]/promo-rules/46/promo-codes: 404 Resource Not Found : The requested resource could not be found.

Exception trace:
 () at .../web-root/vendor/ebizmarts/mailchimp-lib/src/Mailchimp.php:222
 Mailchimp->call() at .../web-root/vendor/ebizmarts/mailchimp-lib/src/Mailchimp/EcommercePromoCodes.php:31
 Mailchimp_EcommercePromoCodes->getAll() at .../web-root/vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php:141
 Ebizmarts\MailChimp\Model\Api\PromoRules->_getModifiedPromoRules() at .../web-root/vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php:85
 Ebizmarts\MailChimp\Model\Api\PromoRules->sendRules() at .../web-root/vendor/mailchimp/mc-magento2/Cron/Ecommerce.php:177
 Ebizmarts\MailChimp\Cron\Ecommerce->_processStore() at .../web-root/vendor/mailchimp/mc-magento2/Cron/Ecommerce.php:124
 Ebizmarts\MailChimp\Cron\Ecommerce->execute() at n/a:n/a
 call_user_func_array() at .../web-root/vendor/magento/framework/App/State.php:171
 Magento\Framework\App\State->emulateAreaCode() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Command/System/Cron/RunCommand.php:80
 N98\Magento\Command\System\Cron\RunCommand->execute() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Command/AbstractMagentoCommand.php:437
 N98\Magento\Command\AbstractMagentoCommand->run() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:882
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:526
 N98\Magento\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:564
 N98\Magento\Application->run() at /usr/local/bin/n98-magerun2.phar:8

It does look like there is an error because a promotion stored in the Magento ecommerce table is not found in MailChimp. Is this an exception that should be caught and dealt with?

I can see that after the initial sync there have been no quotes marked with mailchimp abandoned flag.

@maderlock
Copy link
Author

I put a try catch around the getAll() request which allowed the cron to run, though I still haven't seen any quotes marked over the last 6 weeks, which is odd. I'll continue to look into the abandoned cart issue, which may or may not be related.

@gonzaloebiz
Copy link
Collaborator

Perhaps your issue is related to the response processing
Take a look at #216 an #210
Apply the corresponding fixes and let me know

Best

@gonzaloebiz
Copy link
Collaborator

What version of ebizmarts/mailchimp-lib do you have?

@maderlock
Copy link
Author

Mailchimp module currently running 232db41 tracking dev-develop due to some bug fixes I needed that hadn't been in a release
ebizmarts/mailchimp-lib: 3.0.16

@gonzaloebiz
Copy link
Collaborator

sorry but i don't understand, you have 1.0.26 modified by you or 1.0.27?

@gundamkid
Copy link
Contributor

@maderlock I got same issue,

In my case, data in mailchimp_sync_ecommerce table have some promotion rule that mailchimp didn't have it (i don't know why the proccess sync is corrupted).

Can you try to call Mailchimp API to get all your promotion rules, and check your database, maybe you can find something.

@gonzaloebiz
Copy link
Collaborator

No new since feb 26, so close the issue until we see any news

@gonzaloebiz gonzaloebiz added this to the 1.0.29 milestone May 31, 2018
@gonzaloebiz
Copy link
Collaborator

Related to #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants