Closed Theosakamg closed 2 months ago
after cloning project and set .env file.
.env
k6-shopware (main)$ bun run fetch-fixtures.ts 47 | 48 | const taxIds = await adminApiClient.invoke( 49 | "tax post /search-ids/tax", 50 | ); 51 | 52 | const records = data.data.map((record) => { ^ TypeError: data.data.map is not a function. (In 'data.data.map((record) => { return { id: record.id, name: record.name, accessKey: record.accessKey, url: record.domains[0].url, countryIds: record.countries.map((e) => e.id), salutationIds: salutationIds.data, taxIds: taxIds.data, api: { baseURL: `${process.env.SHOP_URL}/api`, credentials: { grant_type: "password", client_id: "administration", scopes: "write", username: process.env.SHOP_ADMIN_USERNAME, password: process.env.SHOP_ADMIN_PASSWORD } } }; })', 'data.data.map' is undefined) at k6-shopware/fetch-fixtures.ts:52:29 Bun v1.1.26 (Linux x64) `
I think it cannot connect to the shopware installation, maybe check the env again
Fixed by commit 3a3fc0e TY.
after cloning project and set
.env
file.