nerd icon indicating copy to clipboard operation
nerd copied to clipboard

Error 'failed to get oauth credentials' on Windows

Open advdv opened this issue 7 years ago • 0 comments

When running nerd login it showed: "failed to get oauth credentials". With using --debug it shows:

C:\Users\stuurman\AppData\Local\Nerdalize>nerd login --debug

2018/05/16 13:01:03 client.go:64: [DEBUG] HTTP Request:

POST /v1/o/token/ HTTP/1.1

Host: auth.nerdalize.com

Accept: application/json

Content-Type: application/x-www-form-urlencoded

 

client_id=T8I0H3qAeWGA&client_secret=93177b0e77369537ceac900b26f0a9600484564fdda5d431b05e994b&code=0141061810a845acafec233649a20821&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A9876%2Foauth%2Fcallback

2018/05/16 13:01:03 outputter.go:143: failed to get oauth credentials

2018/05/16 13:01:03 outputter.go:147: [DEBUG] Underlying error: Post https://auth.nerdalize.com/v1/o/token/: dial tcp 35.190.12.240:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.

failed to create HTTP request

failed to get oauth credentials

github.com/nerdalize/nerd/command.(*Login).DoRun

        C:/Users/Adam/go/src/github.com/nerdalize/nerd/command/login.go:85

github.com/nerdalize/nerd/command.(*Login).DoRun-fm

        C:/Users/Adam/go/src/github.com/nerdalize/nerd/command/login.go:47

github.com/nerdalize/nerd/command.(*command).Run

        C:/Users/Adam/go/src/github.com/nerdalize/nerd/command/command.go:125

github.com/nerdalize/nerd/vendor/github.com/mitchellh/cli.(*CLI).Run

        C:/Users/Adam/go/src/github.com/nerdalize/nerd/vendor/github.com/mitchellh/cli/cli.go:255

main.main

        C:/Users/Adam/go/src/github.com/nerdalize/nerd/main.go:62

runtime.main

        C:/Go/src/runtime/proc.go:195

runtime.goexit

        C:/Go/src/runtime/asm_amd64.s:2337

 

C:\Users\stuurman\AppData\Local\Nerdalize>

The version of windows is:

OS Name             Microsoft Windows 10 Enterprise

Version 10.0.16299 Build 16299

advdv avatar May 18 '18 12:05 advdv