-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Hi Matthew!
I'm getting the "RangeError: Maximum call stack size exceeded" error when trying to do:
this.$store
.dispatch('jv/get', [
`products/similar_products`,
{
params: {
magentoProductId: this.product._id,
include: 'supplier'
}
}
])JSON response from server
{
"links": {
"self": "/api/products/similar_products?magentoProductId=1\u0026include=supplier"
},
"meta": { "totalItems": 28 },
"data": [
{
"id": "6201",
"type": "Product",
"attributes": {
"_id": 6201,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-07-04T13:24:44+00:00",
"createdAt": "2018-04-09T10:14:11+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "112" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "18737",
"type": "Product",
"attributes": {
"_id": 18737,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-01-08T14:55:49+00:00",
"createdAt": "2018-04-10T07:07:13+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "34" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "20884",
"type": "Product",
"attributes": {
"_id": 20884,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2018-04-10T09:23:33+00:00",
"createdAt": "2018-04-10T08:44:37+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "65" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "40642",
"type": "Product",
"attributes": {
"_id": 40642,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-06-05T14:57:48+00:00",
"createdAt": "2018-08-27T07:26:55+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "154" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "42685",
"type": "Product",
"attributes": {
"_id": 42685,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-07-10T07:28:52+00:00",
"createdAt": "2018-09-04T07:45:23+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "155" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "32089",
"type": "Product",
"attributes": {
"_id": 32089,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-04-15T16:16:27+00:00",
"createdAt": "2018-04-11T13:25:38+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "126" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "2528",
"type": "Product",
"attributes": {
"_id": 2528,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-07-04T13:58:21+00:00",
"createdAt": "2018-04-09T09:23:35+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "21" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "19782",
"type": "Product",
"attributes": {
"_id": 19782,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-06-25T07:27:42+00:00",
"createdAt": "2018-04-10T07:24:54+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "133" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "37062",
"type": "Product",
"attributes": {
"_id": 37062,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2018-06-04T16:28:19+00:00",
"createdAt": "2018-06-04T16:28:19+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "100" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "56377",
"type": "Product",
"attributes": {
"_id": 56377,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-05-22T14:39:51+00:00",
"createdAt": "2019-05-22T14:39:51+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "178" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "11602",
"type": "Product",
"attributes": {
"_id": 11602,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-04-15T14:34:59+00:00",
"createdAt": "2018-04-09T15:13:28+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "63" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "51495",
"type": "Product",
"attributes": {
"_id": 51495,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-07-04T14:15:23+00:00",
"createdAt": "2019-04-15T15:06:52+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "9" } },
"magentoProducts": {
"data": [{ "type": "MagentoProduct", "id": "1558" }]
}
}
},
{
"id": "14539",
"type": "Product",
"attributes": {
"_id": 14539,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-06-25T07:28:23+00:00",
"createdAt": "2018-04-09T15:57:05+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "102" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "54266",
"type": "Product",
"attributes": {
"_id": 54266,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-05-22T14:05:37+00:00",
"createdAt": "2019-05-22T13:41:39+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "175" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "50962",
"type": "Product",
"attributes": {
"_id": 50962,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": false,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-07-04T13:24:40+00:00",
"createdAt": "2019-04-15T14:53:43+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "112" } }
}
},
{
"id": "6480",
"type": "Product",
"attributes": {
"_id": 6480,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-07-04T13:24:44+00:00",
"createdAt": "2018-04-09T10:14:11+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "112" } }
}
},
{
"id": "18374",
"type": "Product",
"attributes": {
"_id": 18374,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2018-05-03T12:10:22+00:00",
"createdAt": "2018-04-10T07:07:13+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "34" } },
"magentoProducts": {
"data": [{ "type": "MagentoProduct", "id": "1506" }]
}
}
},
{
"id": "25649",
"type": "Product",
"attributes": {
"_id": 25649,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-07-04T14:15:23+00:00",
"createdAt": "2018-04-10T14:23:51+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "9" } }
}
},
{
"id": "51376",
"type": "Product",
"attributes": {
"_id": 51376,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-06-05T14:57:48+00:00",
"createdAt": "2019-04-15T15:03:57+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "154" } }
}
},
{
"id": "58028",
"type": "Product",
"attributes": {
"_id": 58028,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-07-10T07:28:52+00:00",
"createdAt": "2019-06-11T12:57:31+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "155" } }
}
},
{
"id": "51771",
"type": "Product",
"attributes": {
"_id": 51771,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-06-25T07:28:41+00:00",
"createdAt": "2019-04-15T15:23:23+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "102" } },
"magentoProducts": {
"data": [{ "type": "MagentoProduct", "id": "1558" }]
}
}
},
{
"id": "37813",
"type": "Product",
"attributes": {
"_id": 37813,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-06-25T07:28:24+00:00",
"createdAt": "2018-06-05T13:39:53+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "102" } }
}
},
{
"id": "52327",
"type": "Product",
"attributes": {
"_id": 52327,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-06-25T07:29:00+00:00",
"createdAt": "2019-04-15T16:05:41+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "33" } }
}
},
{
"id": "56321",
"type": "Product",
"attributes": {
"_id": 56321,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-05-22T14:39:51+00:00",
"createdAt": "2019-05-22T14:39:51+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "178" } },
"magentoProducts": {
"data": [{ "type": "MagentoProduct", "id": "2915" }]
}
}
},
{
"id": "4003",
"type": "Product",
"attributes": {
"_id": 4003,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-07-05T07:20:21+00:00",
"createdAt": "2018-04-09T09:58:23+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "4" } },
"magentoProducts": { "data": [{ "type": "MagentoProduct", "id": "1" }] }
}
},
{
"id": "58403",
"type": "Product",
"attributes": {
"_id": 58403,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "CHF",
"baseCurrency": "EUR",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-07-05T07:20:21+00:00",
"createdAt": "2019-07-05T07:20:21+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "4" } }
}
},
{
"id": "22244",
"type": "Product",
"attributes": {
"_id": 22244,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": false,
"isVermouth": false,
"hasMatches": true,
"updatedAt": "2019-04-15T16:05:21+00:00",
"createdAt": "2018-04-10T13:39:12+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "33" } },
"magentoProducts": {
"data": [{ "type": "MagentoProduct", "id": "2915" }]
}
}
},
{
"id": "57859",
"type": "Product",
"attributes": {
"_id": 57859,
"sku": "111111",
"name": "name",
"alcohol": 40,
"size": 70,
"price": 10,
"basePrice": 12,
"currency": "",
"baseCurrency": "",
"isInStock": true,
"isVermouth": false,
"hasMatches": false,
"updatedAt": "2019-06-25T07:29:07+00:00",
"createdAt": "2019-06-05T14:33:58+00:00"
},
"relationships": {
"supplier": { "data": { "type": "Supplier", "id": "33" } }
}
}
],
"included": [
{
"id": "112",
"type": "Supplier",
"attributes": {
"_id": 112,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:30+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "34",
"type": "Supplier",
"attributes": {
"_id": 34,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:22+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "65",
"type": "Supplier",
"attributes": {
"_id": 65,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:25+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "154",
"type": "Supplier",
"attributes": {
"_id": 154,
"code": "code",
"name": "name",
"createdAt": "2018-08-27T06:51:52+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "155",
"type": "Supplier",
"attributes": {
"_id": 155,
"code": "code",
"name": "name",
"createdAt": "2018-09-04T06:57:40+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "126",
"type": "Supplier",
"attributes": {
"_id": 126,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:31+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "21",
"type": "Supplier",
"attributes": {
"_id": 21,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:20+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "133",
"type": "Supplier",
"attributes": {
"_id": 133,
"code": "code",
"name": "name",
"createdAt": "2018-04-10T07:16:58+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "100",
"type": "Supplier",
"attributes": {
"_id": 100,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:29+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "178",
"type": "Supplier",
"attributes": {
"_id": 178,
"code": "code",
"name": "name",
"createdAt": "2019-05-21T18:09:29+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "63",
"type": "Supplier",
"attributes": {
"_id": 63,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:25+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "9",
"type": "Supplier",
"attributes": {
"_id": 9,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:19+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "102",
"type": "Supplier",
"attributes": {
"_id": 102,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:29+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "175",
"type": "Supplier",
"attributes": {
"_id": 175,
"code": "code",
"name": "name",
"createdAt": "2019-05-21T18:06:47+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "33",
"type": "Supplier",
"attributes": {
"_id": 33,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:22+00:00",
"isDomestic": false,
"currency": "EUR"
}
},
{
"id": "4",
"type": "Supplier",
"attributes": {
"_id": 4,
"code": "code",
"name": "name",
"createdAt": "2018-04-06T08:58:19+00:00",
"isDomestic": false,
"currency": "EUR"
}
}
]
}Any idea what is happening?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request