vuestorefront / storefront-api

Storefront GraphQL API Gateway. Modular architecture. ElasticSearch included. Works great with Magento1, Magento2, Spree, OpenCart, Pimcore and custom backends
https://storefrontapi.com
MIT License
8 stars 1 forks source link

Mapping error when import data from magento 2 #45

Closed Abdoul19 closed 4 years ago

Abdoul19 commented 4 years ago

Hi, maybe I'm doing something wrong, but I can't import data (only products) from magento 2 backend with the command : yarn mage2vs import Elastc is throwing a mapping error as :

llegal_argument_exception\",\"reason\":\"Rejecting mapping update to [vue_storefront_catalog] as the final mapping would have more than 1 type

NB: this occur only with product import

Abdoul19 commented 4 years ago

@ResuBaka, can you help me, please ?

lnicorena commented 4 years ago

Hey! I'm facing the same issue here. (running default installation of storefront-api with magento 2)

"statusCode":400,"response":"{"error":{"root_cause":[ {"type":"remote_transport_exception","reason":"[712cb51e7aad][172.18.0.2:9300][indices:data/write/update[s]]"}], "type":"illegal_argument_exception","reason":"Rejecting mapping update to [vue_storefront_catalog] as the final mapping would have more than 1 type: [category, product]"},"status":400}"}, at /var/www/node_modules/mage2vuestorefront/src/adapters/nosql/elasticsearch.js:80:15, at respond (/var/www/node_modules/elasticsearch/src/lib/transport.js:327:9), at checkRespForFailure (/var/www/node_modules/elasticsearch/src/lib/transport.js:267:7), at HttpConnector.<anonymous> (/var/www/node_modules/elasticsearch/src/lib/connectors/http.js:166:7), at IncomingMessage.wrapper (/var/www/node_modules/lodash/lodash.js:4929:19), at IncomingMessage.emit (events.js:203:15), at endReadableNT (_stream_readable.js:1145:12), at process._tickCallback (internal/process/next_tick.js:63:19)]

pkarw commented 4 years ago

If you're using mage2vsbridge indexer you need to change the elasticsearch version in the config.js setting 7.1

one1note commented 4 years ago

I'm also facing the same issue, the elasticsearch version in the config.js was already set to 7.1.