When using VSF with Elasticsearch <= 6 and (probably) + magento2-vsbridge-indexer you get a 500 when loading a product url directly. This is the Error with some additional data thats output to the console:
{
"code": 500,
"result": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "failed to create query: Can't parse boolean value [1], expected [true] or [false]",
"index_uuid": "bCsJKCQTRCysH-Ts8ZBelA",
"index": "vue_storefront_magento_de_attribute_1592917297"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "vue_storefront_magento_de_attribute_1592917297",
"node": "x0BZRtWyQQCCEbUAG-DuCg",
"reason": {
"type": "query_shard_exception",
"reason": "failed to create query: Can't parse boolean value [1], expected [true] or [false]",
"index_uuid": "bCsJKCQTRCysH-Ts8ZBelA",
"index": "vue_storefront_magento_de_attribute_1592917297",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Can't parse boolean value [1], expected [true] or [false]"
}
}
}
]
}
}
[search] Can not connect the vue-storefront-api / ElasticSearch instance! Error: Unknown error with API catalog result in resultProcessor for entity type 'attribute'
at SearchAdapter.exports.modules../core/lib/search/adapter/api-search-query/searchAdapter.ts.SearchAdapter.handleResult (vsf-search-adapter-api-search-query-searchAdapter.server-bundle.js:217:23)
at Object.resultProcessor (vsf-search-adapter-api-search-query-searchAdapter.server-bundle.js:245:34)
at server-bundle.js:4473:92
at process._tickCallback (internal/process/next_tick.js:68:7)
Error during render : /chaz-kangeroo-hoodie?childSku=MH01-XS-Black
Error: Error: Unknown error with API catalog result in resultProcessor for entity type 'attribute'
at SearchAdapter.exports.modules../core/lib/search/adapter/api-search-query/searchAdapter.ts.SearchAdapter.handleResult (core/lib/search/adapter/api-search-query/searchAdapter.ts:133:14)
at Object.resultProcessor (core/lib/search/adapter/api-search-query/searchAdapter.ts:161:22)
at server-bundle.js:4473:92
at process._tickCallback (internal/process/next_tick.js:68:7)
at _commonErrorHandler (core/server-entry.ts:18:11)
at server-bundle.js:22530:41
at process._tickCallback (internal/process/next_tick.js:68:7)
The url can be reached without browsing the page before.
Pick one option.
develop branch and create Pull Request 2. Feature / Improvement back to develop.release branch and create Pull Request 3. Stabilisation fix back to release.hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.
https://github.com/DivanteLtd/vue-storefront/blob/master/core/modules/catalog/helpers/createAttributesListQuery.ts#L20 and https://github.com/DivanteLtd/vue-storefront/blob/master/core/modules/catalog/helpers/createAttributesListQuery.ts#L23
the '1' needs to be removed
Can confirm. I just set up vuestorefront yesterday and had this exact bug,
I did the adjustment like Dominik Deimel suggested, restarted service-worker.js and error is gone.
Most helpful comment
Can confirm. I just set up vuestorefront yesterday and had this exact bug,
I did the adjustment like Dominik Deimel suggested, restarted service-worker.js and error is gone.