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

dp-cli fails to run on fresh setup #6

Open
tomakado opened this issue Mar 30, 2023 · 0 comments
Open

dp-cli fails to run on fresh setup #6

tomakado opened this issue Mar 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tomakado
Copy link
Member

tomakado commented Mar 30, 2023

If I run dp-cli on fresh machine, I get:

Error loading config: open /Users/tomakado/.config/dp-cli/config.json: no such file or directoryToolkit for managing Defer Panic articles and other stuff

Also, after I've written default(!) value to config's server key, I'm not able to log in:

➜ dp-cli login
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x102c4a14c]

goroutine 1 [running]:
github.com/defer-panic/dp-cli/internal/auth.(*Service).GetAuthLink(0x102e69798?, {0x102e697d0, 0x1400010fc80})
	/Users/tomakado/go/pkg/mod/github.com/defer-panic/dp-cli@v0.3.1/internal/auth/service.go:24 +0x3c
github.com/defer-panic/dp-cli/internal/controller.(*authController).GetAuthLink(0x1400012a5b8, 0x0?, {0x0?, 0x0?, 0x0?})
	/Users/tomakado/go/pkg/mod/github.com/defer-panic/dp-cli@v0.3.1/internal/controller/auth.go:52 +0x70
github.com/spf13/cobra.(*Command).execute(0x14000137680, {0x103126440, 0x0, 0x0})
	/Users/tomakado/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872 +0x4cc
github.com/spf13/cobra.(*Command).ExecuteC(0x1030e77c0)
	/Users/tomakado/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x338
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/tomakado/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/defer-panic/dp-cli/cmd.Execute(...)
	/Users/tomakado/go/pkg/mod/github.com/defer-panic/dp-cli@v0.3.1/cmd/root.go:45
main.main()
	/Users/tomakado/go/pkg/mod/github.com/defer-panic/dp-cli@v0.3.1/main.go:10 +0x28
@tomakado tomakado added the bug Something isn't working label Mar 30, 2023
@tomakado tomakado changed the title dp-cli fails on unitialized setup dp-cli fails to run on fresh setup Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant