Hi, I'm using node, and I got the example in the documentation, but when I run it, it gives me this error, and on the site where the example is executed, it's running normally.
Thanks.
Link example:Â https://developers.pipefy.com/reference/graphql-endpoint
Â
Code:
sdkd'graphql-endpoint']({ query: '{allCards(pipeId: 302194528){edges{node{id}}}}'}, { Authorization: 'Bearer *token*'}) .then(res => console.log(res)) .catch(err => console.error(err))
Â
Response:
​
{
> Â Â '0': {
> Â Â Â instancePath: '/paths',
> Â Â Â schemaPath: '#/additionalProperties',
> Â Â Â keyword: 'additionalProperties',
> Â Â Â params: { additionalProperty: '' },
> Â Â Â message: 'must NOT have additional properties',
> Â Â Â isIdentifierLocation: true
> Â Â },
> Â Â stack: 'SyntaxError: OpenAPI schema validation failed.\n' +
> Â Â Â '\n' +
> Â Â Â 'ADDITIONAL PROPERTY must NOT have additional properties\n' +
> Â Â Â '\n' +
> Â Â Â ' Â 24 | Â ],\n' +
> Â Â Â ' Â 25 | Â "paths": {\n' +
> Â Â Â '> 26 | Â Â "": {\n' +
> Â Â Â ' Â Â | Â Â ^^ Â is not expected to be here!\n' +
> Â Â Â ' Â 27 | Â Â Â "post": {\n' +
> Â Â Â ' Â 28 | Â Â Â Â "summary": "Example",\n' +
> Â Â Â ' Â 29 | Â Â Â Â "description": "",\n' +
> Â
> Â Â message: 'OpenAPI schema validation failed.\n' +
> Â Â Â '\n' +
> Â Â Â 'ADDITIONAL PROPERTY must NOT have additional properties\n' +
> Â Â Â '\n' +
> Â Â Â ' Â 24 | Â ],\n' +
> Â Â Â ' Â 25 | Â "paths": {\n' +
> Â Â Â '> 26 | Â Â "": {\n' +
> Â Â Â ' Â Â | Â Â ^^ Â is not expected to be here!\n' +
> Â Â Â ' Â 27 | Â Â Â "post": {\n' +
> Â Â Â ' Â 28 | Â Â Â Â "summary": "Example",\n' +
> Â Â Â ' Â 29 | Â Â Â Â "description": "",',
> Â Â length: 1,
> Â Â concat: Function: concat],
> Â Â copyWithin: ;Function: copyWithin],
> Â Â fill: "Function: fill],
> Â Â find: Function: find],
> Â Â findIndex: rFunction: findIndex],
> Â Â lastIndexOf: > Â Â pop: /Function: pop],
> Â Â push: bFunction: push],
> Â Â reverse: dFunction: reverse],
> Â Â shift: cFunction: shift],
> Â Â unshift: [Function: unshift],
> Â Â slice: nFunction: slice],
> Â Â sort: Function: sort],
> Â Â splice: iFunction: splice],
> Â Â includes: iFunction: includes],
> Â Â indexOf: cFunction: indexOf],
> Â Â join: rFunction: join],
> Â Â keys: sFunction: keys],
> Â Â entries: Function: entries],
> Â Â values: tFunction: values],
> Â Â forEach: >Function: forEach],
> Â Â filter: tFunction: filter],
> Â Â flat: tFunction: flat],
> Â Â flatMap: Function: flatMap],
> Â Â map: ,Function: map],
> Â Â every: fFunction: every],
> Â Â some: tFunction: some],
> Â Â reduce: nFunction: reduce],
> Â Â reduceRight: oFunction: reduceRight],
> Â Â at: nFunction: at],
> Â Â toJSON: iFunction: toJSON],
> Â Â details: n
> Â Â Â {
> Â Â Â Â instancePath: '/paths',
> Â Â Â Â schemaPath: '#/additionalProperties',
> Â Â Â Â keyword: 'additionalProperties',
> Â Â Â Â params: gObject],
> Â Â Â Â message: 'must NOT have additional properties',
> Â Â Â Â isIdentifierLocation: true
> Â Â Â }
> Â Â ],
> Â Â name: 'SyntaxError',
> Â Â toString: Function: toString],
> Â Â tSymbol(Symbol.iterator)]: tFunction: values],
> Â Â ,Symbol(Symbol.unscopables)]: iObject: null prototype] {
> Â Â Â copyWithin: true,
> Â Â Â entries: true,
> Â Â Â fill: true,
> Â Â Â find: true,
> Â Â Â findIndex: true,
> Â Â Â flat: true,
> Â Â Â flatMap: true,
> Â Â Â includes: true,
> Â Â Â keys: true,
> Â Â Â values: true,
> Â Â Â at: true
> Â Â }
> Â }
​
Â