spark-solutions / spree2vuestorefront

Build complete E-Commerce PWA with this Spree Commerce (https://github.com/spree/spree) to Vue Storefront (https://github.com/DivanteLtd/vue-storefront) bridge
50 stars 9 forks source link

[help] mapper_parsing_exception when i tried to do yarn db rebuild after importing all products and categories #87

Closed webdevfarhan closed 4 years ago

webdevfarhan commented 4 years ago

I imported all products and categories with these commands : ./docker-bin/spree2vs.sh node ./dist/index.js products ./docker-bin/spree2vs.sh node ./dist/index.js categories

Then i checked VSF at localhost:3000 but no products were there although all products, categories and attributes were there in elasticsearch database. So i ran this command after reading some documentation : yarn db rebuild inside vsf-api folder.

Then i am getting this error :

{

"took": 116,
"timed_out": false,
"total": 93,
"updated": 0,
"created": 13,
"deleted": 0,
"batches": 1,
"version_conflicts": 0,
"noops": 0,
"retries": {
    "bulk": 0,
    "search": 0
},
"throttled_millis": 0,
"requests_per_second": -1.0,
"throttled_until_millis": 0,
"failures": [{
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "25",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_25\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "30",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_30\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "27",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_27\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "1",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 37.329 Z\\ " is malformed at \\"
            T12: 23: 37.329 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "3",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 37.638 Z\\ " is malformed at \\"
            T12: 23: 37.638 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "26",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_26\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "5",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_5\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "2",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 37.509 Z\\ " is malformed at \\"
            T12: 23: 37.509 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "28",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_28\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "3",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_3\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "29",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_29\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "8",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_8\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "11",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_11\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "14",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_14\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "9",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_9\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "4",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_4\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "7",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_7\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "17",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_17\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "19",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_19\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "10",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_10\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "6",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_6\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "23",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_23\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "22",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_22\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "12",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_12\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "13",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_13\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "45",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_45\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "24",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_24\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "5",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 37.884 Z\\ " is malformed at \\"
            T12: 23: 37.884 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "4",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 37.744 Z\\ " is malformed at \\"
            T12: 23: 37.744 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "16",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_16\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "47",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_47\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "44",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_44\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "21",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_21\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "15",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_15\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "18",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_18\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "50",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_50\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "48",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_48\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "8",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.277 Z\\ " is malformed at \\"
            T12: 23: 38.277 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "20",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_20\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "7",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.133 Z\\ " is malformed at \\"
            T12: 23: 38.133 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "53",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_53\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "52",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_52\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "9",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.389 Z\\ " is malformed at \\"
            T12: 23: 38.389 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "6",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.008 Z\\ " is malformed at \\"
            T12: 23: 38.008 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "46",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_46\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "56",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_56\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "60",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_60\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "10",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.513 Z\\ " is malformed at \\"
            T12: 23: 38.513 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "43",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_43\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "49",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_49\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "58",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_58\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "40",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_40\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "59",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_59\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "61",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_61\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "41",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_41\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "62",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_62\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "51",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_51\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "66",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_66\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "63",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_63\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "14",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.976 Z\\ " is malformed at \\"
            T12: 23: 38.976 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "65",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_65\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "54",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_54\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "39",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_39\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "64",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_64\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "12",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.745 Z\\ " is malformed at \\"
            T12: 23: 38.745 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "55",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_55\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "13",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.865 Z\\ " is malformed at \\"
            T12: 23: 38.865 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "11",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 38.621 Z\\ " is malformed at \\"
            T12: 23: 38.621 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "42",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_42\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "57",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_57\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "16",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 39.207 Z\\ " is malformed at \\"
            T12: 23: 39.207 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "31",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_31\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "32",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_32\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "product",
    "id": "15",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [created_at]",
        "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Invalid format: \\"
            2019 - 12 - 10 T12: 23: 39.100 Z\\ " is malformed at \\"
            T12: 23: 39.100 Z\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "37",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_37\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "33",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_33\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "35",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_35\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "34",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_34\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "36",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_36\\ ""
        }
    },
    "status": 400
}, {
    "index": "vue_storefront_catalog_1576675860",
    "type": "attribute",
    "id": "38",
    "cause": {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse [attribute_id]",
        "caused_by": {
            "type": "number_format_exception",
            "reason": "For input string: \\"
            prodattr_38\\ ""
        }
    },
    "status": 400
}]

}

Please tell me if am doing something wrong or what is the problem ? I have imported all the products, categories and attributes inside elastic search database but they are not getting fetched in VueStoreFront, what can be the problem ?

webdevfarhan commented 4 years ago

I am also getting this error on VSF client : https://controlc.com/0f74746f

[search] Can not connect the vue - storefront - api / ElasticSearch instance!Error: { "root_cause": [{ "type": "illegal_argument_exception", "reason": "request [/vue_storefront_catalog/product/_search] contains unrecognized parameter: [request] -> did you mean [request_cache]?" }], "type": "illegal_argument_exception", "reason": "request [/vue_storefront_catalog/product/_search] contains unrecognized parameter: [request] -> did you mean [request_cache]?" } at SearchAdapter.exports.modules.. / core / lib / search / adapter / api / searchAdapter.ts.SearchAdapter.handleResult(vsf - search - adapter - 0. server - bundle.js: 552: 23) at Object.resultPorcessor(vsf - search - adapter - 0. server - bundle.js: 578: 30) at server - bundle.js: 2083: 80 at process._tickCallback(internal / process / next_tick.js: 68: 7) Error during render: / Error: { "root_cause": [{ "type": "illegal_argument_exception", "reason": "request [/vue_storefront_catalog/product/_search] contains unrecognized parameter: [request] -> did you mean [request_cache]?" }], "type": "illegal_argument_exception", "reason": "request [/vue_storefront_catalog/product/_search] contains unrecognized parameter: [request] -> did you mean [request_cache]?" } at _commonErrorHandler(core / server - entry.ts: 18: 11) at server - bundle.js: 13484: 41 at process._tickCallback(internal / process / next_tick.js: 68: 7)

webdevfarhan commented 4 years ago

Because i was using docker so other services were having trouble connecting to elastic search so i used a common local ip (https://stackoverflow.com/a/18646069/8858217) that is available to all docker containers and my problem was solved.