Skip to content

GKE on Windows: Failed to refresh token #50

Closed
@ghost

Description

When using Google Kubernetes Engine on Windows, the Kubernetes client
sometimes fails with the following error:

C:\...\node_modules\@kubernetes\client-node\dist\config.js:99
                            throw new Error('Failed to refresh token: ' + result);
                            ^

Error: Failed to refresh token:
    at KubeConfig.applyAuthorizationHeader (C:\...\node_modules\@kubernetes\client-node\dist\config.js:99:35)
    at KubeConfig.applyOptions (C:\...\node_modules\@kubernetes\client-node\dist\config.js:126:14)
    at KubeConfig.applyToRequest (C:\...\node_modules\@kubernetes\client-node\dist\config.js:138:14)
    at Core_v1Api.createNamespace (C:\...\node_modules\@kubernetes\client-node\dist\api.js:27561:38)
    at Object.<anonymous> (C:\...\create-namespace.js:19:5)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

The content of result.stderr:

'C:\\Users\\cbuchacher\\AppData\\Local\\Google\\Cloud\' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n'

The content of user.authProvider.config['cmd-path']:

C:\Users\cbuchacher\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions