vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
19 stars 13 forks source link

TypeError: Cannot read property 'attribute_id' of null #378

Open ghost opened 4 years ago

ghost commented 4 years ago

Current behavior

error: Unhandled Rejection at: Promise Promise {

TypeError: Cannot read property 'attribute_id' of null at findOptionValues (/var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/produc t.js:256:47) at /var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:261:37 at Array.map () at selectFields (/var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js :260:39) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) } reason: { message: "Cannot read property 'attribute_id' of null", stack: "TypeError: Cannot read property 'attribute_id' of null\n" + ' at findOptionValues (/var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/pro duct.js:256:47)\n' + ' at /var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:261:37\n' * ``` ' at Array.map ()\n' + ' at selectFields (/var/www/html/storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product ``` .js:260:39)\n' + ' at runMicrotasks ()\n' + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)' } ## Expected behavior It should import products ## Steps to reproduce the issue Run yarn mage2vs import it happens sometime and sometime it works ## Version of Vue Storefront * [ ] Vue Storefront -- ## [1.12.3] ## Can you handle fixing this bug by yourself? * [x] NO ## Environment details * Browser: NA * OS: Linux * Node: 12.18.3 * Code Version: [1.12.3]
himanshutecstub commented 3 years ago

I fetch same issue during installation with latest version any solution?

ghost commented 3 years ago

Same issue when I want to install vue storefront with yarn run installer

debug: Response received.

2021-02-11T13:05:57.154Z - info: Configurable options for vue_storefront_catalog_attr_203
2021-02-11T13:05:57.155Z - info: Configurable options expanded!

2021-02-11T13:05:57.160Z - error: Unhandled Rejection at: Promise Promise {
  <rejected> TypeError: Cannot read property 'attribute_id' of null
      at findOptionValues (/var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:256:47)
      at /var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:261:37
      at Array.map (<anonymous>)
      at selectFields (/var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:260:39)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
} reason: 
{
  message: "Cannot read property 'attribute_id' of null",
  stack: "TypeError: Cannot read property 'attribute_id' of null\n" +
    '    at findOptionValues (/var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:256:47)\n' +
    '    at /var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:261:37\n' +
    '    at Array.map (<anonymous>)\n' +
    '    at selectFields (/var/www/html/vuestorefront/vue-storefront-api/node_modules/mage2vuestorefront/src/adapters/magento/product.js:260:39)\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:97:5)'
}