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
Inconsistency in Product Image Import via Magento REST API #38644
Comments
Hi @dtanh91. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @dtanh91 Thanks for reporting and collaboration. Can you please share the payload you have used. Would be helpful to reproduce the issue accurately. Thanks. |
this is my payload |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @dtanh91 , Thanks for reporting and collaboration. Verified the issue in Magento 2.4 dev instance and the issue is not reproducible. Steps to reproduce: 1.Import products with base 64 encoded image/images using rest API Payload used: { Result: { Please refer the attached screenshots, data and let us know if we missed anything. |
Preconditions and environment
I'm using Magento 2.4.5. I'm importing products through Magento's REST API using the endpoint /rest/default/V1/products. Each product I insert has an image in base64 format. However, when running the import, some products have images while others don't. If I run it again, the results may change.
Param in post allway the same.
Steps to reproduce
For example, I have products A and B, both with images, but when running:
A has an image, B doesn't.
Running again, A has no image, B does.
Running again, neither A nor B have images.
Running again, both A and B have images.
And this cycle continues, sometimes A has an image while B doesn't, and vice versa.
Expected result
{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 05:39:22","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 05:39:22","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3780,"media_type":"image","label":"1x Elite Link Shift Kit / Silver","position":0,"disabled":false,"types":["image","small_image","thumbnail"],"file":"/n/e/netsuite_7709.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"/n/e/netsuite_7709.jpg"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}
Actual result
{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 05:44:59","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 05:44:59","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[{"id":3780,"media_type":"image","label":"1x Elite Link Shift Kit / Silver","position":0,"disabled":false,"types":[],"file":"/n/e/netsuite_7709.jpg"}],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}
Or somtime like this
{"id":23,"sku":"CABLE-RCK601","name":"1x Elite Link Shift Kit / Silver","attribute_set_id":4,"price":999999999,"status":1,"visibility":4,"type_id":"simple","created_at":"2024-04-11 16:30:11","updated_at":"2024-04-21 06:04:58","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"7"},{"position":0,"category_id":"9"}],"stock_item":{"item_id":23,"product_id":23,"stock_id":1,"qty":null,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":100000000,"use_config_backorders":true,"backorders":1,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":true,"manage_stock":false,"low_stock_date":"2024-04-21 06:04:58","is_decimal_divided":false,"stock_status_changed_auto":0}},"options":[],"media_gallery_entries":[],"tier_prices":[{"customer_group_id":4,"qty":1,"value":81.9,"extension_attributes":{"website_id":0}},{"customer_group_id":5,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":6,"qty":1,"value":73.5,"extension_attributes":{"website_id":0}},{"customer_group_id":7,"qty":1,"value":105,"extension_attributes":{"website_id":0}}],"custom_attributes":[{"attribute_code":"image","value":"no_selection"},{"attribute_code":"url_key","value":"1x-elite-link-shift-kit-silver"},{"attribute_code":"brands","value":"6"},{"attribute_code":"small_image","value":"no_selection"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sub_category","value":"8"},{"attribute_code":"thumbnail","value":"no_selection"},{"attribute_code":"swatch_image","value":"no_selection"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"category_ids","value":["7","9"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"small_image_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"brand","value":"JAGWIRE"},{"attribute_code":"thumbnail_label","value":"1x Elite Link Shift Kit / Silver"},{"attribute_code":"internal_id","value":"7709"}]}
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: