Hi.
I'm testing out crystallize to see if it fits our workflow and was going to test this import script to see how it worked. But i cannot get it to work.
When running the npm start, following errors appear.
⠧ Getting tenant infoResponse {
size: 0,
timeout: 0,
[Symbol(Body internals)]:
{ body:
PassThrough {
_readableState: [ReadableState],
readable: true,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: true,
_transformState: [Object] },
disturbed: false,
error: null },
[Symbol(Response internals)]:
{ url: 'https://pim.crystallize.com/graphql',
status: 400,
statusText: 'Bad Request',
headers: Headers { [Symbol(map)]: [Object] },
counter: 0 } }
Error: {
"errors": [
{
"message": "Unknown argument \"id\" on field \"Query.tenant\".",
"locations": [
{
"line": 2,
"column": 16
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"GraphQLError: Unknown argument \"id\" on field \"Query.tenant\".",
" at Object.Argument (/opt/app/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js:46:29)",
" at Object.enter (/opt/app/node_modules/graphql/language/visitor.js:323:29)",
" at Object.enter (/opt/app/node_modules/graphql/utilities/TypeInfo.js:370:25)",
" at visit (/opt/app/node_modules/graphql/language/visitor.js:243:26)",
" at Object.validate (/opt/app/node_modules/graphql/validation/validate.js:69:24)",
" at validate (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:221:34)",
" at Object.<anonymous> (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:118:42)",
" at Generator.next (<anonymous>)",
" at fulfilled (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:5:58)",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
}
},
{
"message": "Cannot query field \"rootItemId\" on type \"TenantQueries\".",
"locations": [
{
"line": 3,
"column": 11
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"GraphQLError: Cannot query field \"rootItemId\" on type \"TenantQueries\".",
" at Object.Field (/opt/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:46:31)",
" at Object.enter (/opt/app/node_modules/graphql/language/visitor.js:323:29)",
" at Object.enter (/opt/app/node_modules/graphql/utilities/TypeInfo.js:370:25)",
" at visit (/opt/app/node_modules/graphql/language/visitor.js:243:26)",
" at Object.validate (/opt/app/node_modules/graphql/validation/validate.js:69:24)",
" at validate (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:221:34)",
" at Object.<anonymous> (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:118:42)",
" at Generator.next (<anonymous>)",
" at fulfilled (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:5:58)",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
}
},
{
"message": "Cannot query field \"shapes\" on type \"TenantQueries\".",
"locations": [
{
"line": 4,
"column": 11
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"GraphQLError: Cannot query field \"shapes\" on type \"TenantQueries\".",
" at Object.Field (/opt/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:46:31)",
" at Object.enter (/opt/app/node_modules/graphql/language/visitor.js:323:29)",
" at Object.enter (/opt/app/node_modules/graphql/utilities/TypeInfo.js:370:25)",
" at visit (/opt/app/node_modules/graphql/language/visitor.js:243:26)",
" at Object.validate (/opt/app/node_modules/graphql/validation/validate.js:69:24)",
" at validate (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:221:34)",
" at Object.<anonymous> (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:118:42)",
" at Generator.next (<anonymous>)",
" at fulfilled (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:5:58)",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
}
},
{
"message": "Cannot query field \"vatTypes\" on type \"TenantQueries\".",
"locations": [
{
"line": 12,
"column": 11
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"GraphQLError: Cannot query field \"vatTypes\" on type \"TenantQueries\".",
" at Object.Field (/opt/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:46:31)",
" at Object.enter (/opt/app/node_modules/graphql/language/visitor.js:323:29)",
" at Object.enter (/opt/app/node_modules/graphql/utilities/TypeInfo.js:370:25)",
" at visit (/opt/app/node_modules/graphql/language/visitor.js:243:26)",
" at Object.validate (/opt/app/node_modules/graphql/validation/validate.js:69:24)",
" at validate (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:221:34)",
" at Object.<anonymous> (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:118:42)",
" at Generator.next (<anonymous>)",
" at fulfilled (/opt/app/node_modules/apollo-server-core/dist/requestPipeline.js:5:58)",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
}
}
]
}
at graphQLFetcher (/home/slaxxarn/projekt/crystallize/examples/products-import-from-csv/utils.js:36:13)
at process._tickCallback (internal/process/next_tick.js:68:7)