DivanteLtd / pimcore-magento2-bridge

Pimcore module for Magento 2 integration
35 stars 24 forks source link

Spam send with w-vision data-definition plugin #46

Open The-Creeps opened 4 years ago

The-Creeps commented 4 years ago

I try with you (after contacting the author of the plugin 'data-definition' of w-vision) if you can give me a tips to solve my problem.

When I import with the w-vision plugin, my import slows down or freezes completely. This is due to a spam loop and in my magento journal I see that ...

[2020-04-24 14:20:08] StreamLogger.INFO: Pimcore data received:  {"product_id":69892,"store_view_id":0,"action":"insert/update"} []
> [2020-04-24 14:20:08] StreamLogger.INFO: 200 ["Product 69892 has been added to queue"] []
> [2020-04-24 14:20:08] StreamLogger.INFO: Pimcore data received:  {"product_id":69892,"store_view_id":0,"action":"insert/update"} []
> [2020-04-24 14:20:08] StreamLogger.INFO: 200 ["Product 69892 has been added to queue"] []
> [2020-04-24 14:20:08] StreamLogger.INFO: Pimcore data received:  {"product_id":69892,"store_view_id":0,"action":"insert/update"} []
> [2020-04-24 14:20:08] StreamLogger.INFO: 200 ["Product 69892 has been added to queue"] []
> [2020-04-24 14:20:09] StreamLogger.INFO: Pimcore data received:  {"product_id":69892,"store_view_id":0,"action":"insert/update"} []
> [2020-04-24 14:20:09] StreamLogger.INFO: 200 ["Product 69892 has been added to queue"] []
> [2020-04-24 14:20:09] StreamLogger.INFO: Pimcore data received:  {"product_id":69892,"store_view_id":0,"action":"insert/update"} []
> [2020-04-24 14:20:09] StreamLogger.INFO: 200 ["Product 69892 has been added to queue"] []

When i try to apply in mass publishing from pimcore directly all are ok and i can push more 3000 products easily without spam.

here my magento log with import without data-definition :

QUERY: instanceUrl=http://dev.magento.com&apikey=eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b&storeViewId=0
POST: message=product with ID 81860 successfully added to queue&status=SUCCESS&id=81860 [] []
[2020-04-27 10:29:14] StreamLogger.INFO: {"success":true,"msg":null} [] []
[2020-04-27 10:29:14] StreamLogger.INFO: 200 ["Product 81860 has been added to queue"] []
[2020-04-27 10:29:15] StreamLogger.INFO: Pimcore data received:  {"product_id":81861,"store_view_id":0,"action":"delete"} []
[2020-04-27 10:29:15] StreamLogger.INFO:
====REQUEST====
POST http://dev.pimcore.com/webservice/rest/product/update-status HTTP/1.1
Authorization: Bearer eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b
Content-Type: application/x-www-form-urlencoded
Accept: application/x-www-form-urlencoded

QUERY: instanceUrl=http://dev.magento.com&apikey=eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b&storeViewId=0
POST: message=product with ID 81861 successfully added to queue&status=SUCCESS&id=81861 [] []
[2020-04-27 10:29:15] StreamLogger.INFO: {"success":true,"msg":null} [] []
[2020-04-27 10:29:15] StreamLogger.INFO: 200 ["Product 81861 has been added to queue"] []
[2020-04-27 10:29:16] StreamLogger.INFO: Pimcore data received:  {"product_id":81862,"store_view_id":0,"action":"delete"} []
[2020-04-27 10:29:16] StreamLogger.INFO:
====REQUEST====
POST http://dev.pimcore.com/webservice/rest/product/update-status HTTP/1.1
Authorization: Bearer eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b
Content-Type: application/x-www-form-urlencoded
Accept: application/x-www-form-urlencoded

QUERY: instanceUrl=http://dev.magento.com&apikey=eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b&storeViewId=0
POST: message=product with ID 81862 successfully added to queue&status=SUCCESS&id=81862 [] []
[2020-04-27 10:29:16] StreamLogger.INFO: {"success":true,"msg":null} [] []
[2020-04-27 10:29:16] StreamLogger.INFO: 200 ["Product 81862 has been added to queue"] []
[2020-04-27 10:29:17] StreamLogger.INFO: Pimcore data received:  {"product_id":81863,"store_view_id":0,"action":"delete"} []
[2020-04-27 10:29:17] StreamLogger.INFO:
====REQUEST====
POST http://dev.pimcore.com/webservice/rest/product/update-status HTTP/1.1
Authorization: Bearer eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b
Content-Type: application/x-www-form-urlencoded
Accept: application/x-www-form-urlencoded

QUERY: instanceUrl=http://dev.magento.com&apikey=eb9402b0f11f67e4ce791405c32d0e186e9a33f193acbdd8c2d97fa18ea5024b&storeViewId=0
POST: message=product with ID 81863 successfully added to queue&status=SUCCESS&id=81863 [] []
[2020-04-27 10:29:17] StreamLogger.INFO: {"success":true,"msg":null} [] []
[2020-04-27 10:29:17] StreamLogger.INFO: 200 ["Product 81863 has been added to queue"] []

If you can help me to fix my problem i will be very happy .... thx for your answer

mbolka commented 4 years ago

Hi @The-Creeps Thank you for your info. For now, I can suggest you to unpublished IntegrationConfiguration objects before you import data with ImportDefinition, or import products to the different catalog than the one you are using for synchronization with Magento. We are currently working on a much better optimized version of the connector and it will be published very soon. You can see it on branch develop-v2. It will be compatible with the previous version of the connector. I hope that this quick solution will help you and we will try to resolve it in the newer version of the connector.

The-Creeps commented 4 years ago

Thank you for this response ;) disable IntegrationConfiguration fix my problem but it's not a solution for me at this point. I follow the develop-v2 branch now. Thank you very much for this work ;)