Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'request' of undefined #549

Closed
b1zzu opened this issue Oct 23, 2019 · 1 comment
Closed

Cannot read property 'request' of undefined #549

b1zzu opened this issue Oct 23, 2019 · 1 comment

Comments

@b1zzu
Copy link

b1zzu commented Oct 23, 2019

What have I done

const Client = require("kubernetes-client").Client;
const client = new Client({ version: "1.13" });

What is the result

    TypeError: Cannot read property 'request' of undefined
      at new Request (node_modules/kubernetes-client/lib/backends/request.js:100:35)
      at new Client (node_modules/kubernetes-client/lib/swagger-client.js:132:40)
      at Function.<anonymous> (util/openshift.ts:23:20)
      at step (util/openshift.ts:33:23)
      at Object.next (util/openshift.ts:14:53)
      at /home/dbizzarr/Projects/github.com/aerogear/test-suite/backup/util/openshift.ts:8:71
      at new Promise (<anonymous>)
      at __awaiter (util/openshift.ts:4:12)
      at Function.OpenshiftHelper.new (util/openshift.ts:46:16)
      at Suite.<anonymous> (test/backup_and_restore.ts:43:41)
      at step (test/backup_and_restore.ts:33:23)
      at Object.next (test/backup_and_restore.ts:14:53)
      at /home/dbizzarr/Projects/github.com/aerogear/test-suite/backup/test/backup_and_restore.ts:8:71
      at new Promise (<anonymous>)
      at __awaiter (test/backup_and_restore.ts:4:12)
      at Context.<anonymous> (test/backup_and_restore.ts:40:14)
      at processImmediate (internal/timers.js:439:21)
      at process.topLevelDomainCallback (domain.js:131:23)

Additional informations

# kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0+724e12f93f", GitCommit:"d5465d715197862b15c8cf05e864d7c3cfea6917", GitTreeState:"clean", BuildDate:"2019-10-10T22:03:41Z", GoVersion:"go1.12.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.0+d4cacc0", GitCommit:"d4cacc0", GitTreeState:"clean", BuildDate:"2019-04-10T17:49:11Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
@b1zzu
Copy link
Author

b1zzu commented Oct 23, 2019

I was using an old version

@b1zzu b1zzu closed this as completed Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant