{"action":"created","issue":{"url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/220","repository_url":"https://api.github.com/repos/mailchimp/mc-magento2","labels_url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/220/comments","events_url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/220/events","html_url":"https://github.com/mailchimp/mc-magento2/issues/220","id":300204384,"number":220,"title":"No Abandoned Cart Data Sent","user":{"login":"maderlock","id":630320,"avatar_url":"https://avatars3.githubusercontent.com/u/630320?v=4","gravatar_id":"","url":"https://api.github.com/users/maderlock","html_url":"https://github.com/maderlock","followers_url":"https://api.github.com/users/maderlock/followers","following_url":"https://api.github.com/users/maderlock/following{/other_user}","gists_url":"https://api.github.com/users/maderlock/gists{/gist_id}","starred_url":"https://api.github.com/users/maderlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maderlock/subscriptions","organizations_url":"https://api.github.com/users/maderlock/orgs","repos_url":"https://api.github.com/users/maderlock/repos","events_url":"https://api.github.com/users/maderlock/events{/privacy}","received_events_url":"https://api.github.com/users/maderlock/received_events","type":"User","site_admin":false},"labels":[{"id":440614254,"url":"https://api.github.com/repos/mailchimp/mc-magento2/labels/need%20feedback","name":"need feedback","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"gonzaloebiz","id":6222792,"avatar_url":"https://avatars0.githubusercontent.com/u/6222792?v=4","gravatar_id":"","url":"https://api.github.com/users/gonzaloebiz","html_url":"https://github.com/gonzaloebiz","followers_url":"https://api.github.com/users/gonzaloebiz/followers","following_url":"https://api.github.com/users/gonzaloebiz/following{/other_user}","gists_url":"https://api.github.com/users/gonzaloebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzaloebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzaloebiz/subscriptions","organizations_url":"https://api.github.com/users/gonzaloebiz/orgs","repos_url":"https://api.github.com/users/gonzaloebiz/repos","events_url":"https://api.github.com/users/gonzaloebiz/events{/privacy}","received_events_url":"https://api.github.com/users/gonzaloebiz/received_events","type":"User","site_admin":false},"assignees":[{"login":"gonzaloebiz","id":6222792,"avatar_url":"https://avatars0.githubusercontent.com/u/6222792?v=4","gravatar_id":"","url":"https://api.github.com/users/gonzaloebiz","html_url":"https://github.com/gonzaloebiz","followers_url":"https://api.github.com/users/gonzaloebiz/followers","following_url":"https://api.github.com/users/gonzaloebiz/following{/other_user}","gists_url":"https://api.github.com/users/gonzaloebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzaloebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzaloebiz/subscriptions","organizations_url":"https://api.github.com/users/gonzaloebiz/orgs","repos_url":"https://api.github.com/users/gonzaloebiz/repos","events_url":"https://api.github.com/users/gonzaloebiz/events{/privacy}","received_events_url":"https://api.github.com/users/gonzaloebiz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-02-26T11:36:53Z","updated_at":"2018-04-06T15:03:39Z","closed_at":"2018-04-06T15:03:39Z","author_association":"NONE","body":"## Issue Description\r\n\r\n### Preconditions\r\n\r\n1. Magento 2.1.9\r\n2. Extension v 1.0.27\r\n3. Store connected (can see both ends)\r\n4. Admin says that everything is synced\r\n5. Ecommerce data says is synced and abandoned carts turned on\r\n6. Abandoned cart series exists and active - was working under MageMonkey\r\n\r\n### Steps to reproduce\r\n\r\n1. Create cart, add email, abandon cart\r\n2. Run ebizmarts_ecommerce cron job\r\n\r\n### Actual Result\r\n\r\n1. [Mailchimp_Error]\r\nResource Not Found : The requested resource could not be found.\r\n\r\n### Additional information\r\n\r\nWhen running the cron manually and adding in some extra logging I can see that the error is caused when fetching updates to promo rules:\r\n\r\n```\r\n[Mailchimp_Error]\r\necommerce/stores/[storeIDredacted]/promo-rules/46/promo-codes: 404 Resource Not Found : The requested resource could not be found.\r\n\r\nException trace:\r\n () at .../web-root/vendor/ebizmarts/mailchimp-lib/src/Mailchimp.php:222\r\n Mailchimp->call() at .../web-root/vendor/ebizmarts/mailchimp-lib/src/Mailchimp/EcommercePromoCodes.php:31\r\n Mailchimp_EcommercePromoCodes->getAll() at .../web-root/vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php:141\r\n Ebizmarts\\MailChimp\\Model\\Api\\PromoRules->_getModifiedPromoRules() at .../web-root/vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php:85\r\n Ebizmarts\\MailChimp\\Model\\Api\\PromoRules->sendRules() at .../web-root/vendor/mailchimp/mc-magento2/Cron/Ecommerce.php:177\r\n Ebizmarts\\MailChimp\\Cron\\Ecommerce->_processStore() at .../web-root/vendor/mailchimp/mc-magento2/Cron/Ecommerce.php:124\r\n Ebizmarts\\MailChimp\\Cron\\Ecommerce->execute() at n/a:n/a\r\n call_user_func_array() at .../web-root/vendor/magento/framework/App/State.php:171\r\n Magento\\Framework\\App\\State->emulateAreaCode() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Command/System/Cron/RunCommand.php:80\r\n 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\r\n Symfony\\Component\\Console\\Command\\Command->run() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Command/AbstractMagentoCommand.php:437\r\n N98\\Magento\\Command\\AbstractMagentoCommand->run() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:882\r\n Symfony\\Component\\Console\\Application->doRunCommand() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195\r\n Symfony\\Component\\Console\\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:526\r\n N98\\Magento\\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126\r\n Symfony\\Component\\Console\\Application->run() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:564\r\n N98\\Magento\\Application->run() at /usr/local/bin/n98-magerun2.phar:8\r\n```\r\n\r\nIt 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?\r\n\r\nI can see that after the initial sync there have been no quotes marked with mailchimp abandoned flag."},"comment":{"url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/comments/379281510","html_url":"https://github.com/mailchimp/mc-magento2/issues/220#issuecomment-379281510","issue_url":"https://api.github.com/repos/mailchimp/mc-magento2/issues/220","id":379281510,"user":{"login":"gonzaloebiz","id":6222792,"avatar_url":"https://avatars0.githubusercontent.com/u/6222792?v=4","gravatar_id":"","url":"https://api.github.com/users/gonzaloebiz","html_url":"https://github.com/gonzaloebiz","followers_url":"https://api.github.com/users/gonzaloebiz/followers","following_url":"https://api.github.com/users/gonzaloebiz/following{/other_user}","gists_url":"https://api.github.com/users/gonzaloebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzaloebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzaloebiz/subscriptions","organizations_url":"https://api.github.com/users/gonzaloebiz/orgs","repos_url":"https://api.github.com/users/gonzaloebiz/repos","events_url":"https://api.github.com/users/gonzaloebiz/events{/privacy}","received_events_url":"https://api.github.com/users/gonzaloebiz/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T15:03:39Z","updated_at":"2018-04-06T15:03:39Z","author_association":"COLLABORATOR","body":"No new since feb 26, so close the issue until we see any news"}}
{"actor":{"display_login":"gonzaloebiz"}}