Skip to content

Swagger Client Initialisation is failing. #1460

@jaliph

Description

@jaliph

Getting a sudden error while initialisation of the Swagger.

[ TypeError: Cannot read property 'applyPatch' of undefined
      at Object.a [as applyPatch] (/path/to/node_modules/swagger-client/dist/index.js:1:9824)
      at e.value (/path/to/node_modules/swagger-client/dist/index.js:1:24637)
      at /path/to/node_modules/swagger-client/dist/index.js:1:24394
      at Array.forEach (<anonymous>)
      at e.value (/path/to/node_modules/swagger-client/dist/index.js:1:23989)
      at new e (/path/to/node_modules/swagger-client/dist/index.js:1:20400)
      at a (/path/to/node_modules/swagger-client/dist/index.js:1:19328)
      at t (/path/to/node_modules/swagger-client/dist/index.js:1:14280)
      at Function.o [as resolve] (/path/to/node_modules/swagger-client/dist/index.js:1:14995)
      at a.resolve (/path/to/node_modules/swagger-client/dist/index.js:1:18398)
      at new a (/path/to/node_modules/swagger-client/dist/index.js:1:17450)
      at a (/path/to/node_modules/swagger-client/dist/index.js:1:17408)
      at Promise (/path/to/node_modules/connector-compliance-tests/classes/swaggerApiHelper.js:188:7)
      at new WrappedPromise (/path/to/node_modules/async-listener/es6-wrapped-promise.js:13:18)
      at ApiHelper.doClientInitialisation (/path/to/node_modules/connector-compliance-tests/classes/swaggerApiHelper.js:187:12)
      at Promise.all.swaggerObjectList.map (/path/to/node_modules/connector-compliance-tests/validators/swaggerValidator.js:90:31)
      at Array.map (<anonymous>)
      at Promise (/path/to/node_modules/connector-compliance-tests/validators/swaggerValidator.js:88:35)
      at new WrappedPromise (/path/to/node_modules/async-listener/es6-wrapped-promise.js:13:18)
      at Object.setupSwaggerClient (/path/to/node_modules/connector-compliance-tests/validators/swaggerValidator.js:86:10)
      at Context.<anonymous> (/path/to/node_modules/connector-compliance-tests/testSuite/discoverySwaggerSchemaTests.js:43:32)
      at callFnAsync (/path/to/node_modules/mocha/lib/runnable.js:371:21)
      at Test.Runnable.run (/path/to/node_modules/mocha/lib/runnable.js:318:7)
      at Runner.runTest (/path/to/node_modules/mocha/lib/runner.js:443:10)
      at /path/to/node_modules/mocha/lib/runner.js:549:12
      at next (/path/to/node_modules/mocha/lib/runner.js:361:14)
      at /path/to/node_modules/mocha/lib/runner.js:371:7
      at next (/path/to/node_modules/mocha/lib/runner.js:295:14)
      at Immediate._onImmediate (/path/to/node_modules/mocha/lib/runner.js:339:5)
      at processImmediate (internal/timers.js:443:21) ]

Swagger Client version 3.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions