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

[Bug] Twitch token subcommand fails with segmentation fault #289

Closed
djavorszky opened this issue Oct 23, 2023 · 0 comments · Fixed by #293
Closed

[Bug] Twitch token subcommand fails with segmentation fault #289

djavorszky opened this issue Oct 23, 2023 · 0 comments · Fixed by #293

Comments

@djavorszky
Copy link

What is the problem?

Invoking the example command from the documentation, I'm getting an error

$ twitch token -u -s 'user:read:email user:edit'

Additional information

  • Same happens if I specify the client id as a flag.
  • Twitch CLI version is 1.1.21
$ twitch version
twitch-cli/1.1.21
  • Cli was installed via brew
  • twitch-cli.env file does not exist, and setting --config to another location doesn't help.

Operating System

Mac OS 14.0

Architecture Version (x86, x64, arm, etc)

arm (Apple Silicon M1 Pro)

Steps to reproduce

  1. Execute: twitch token -u -s 'user:read:email user:edit'

Relevant log output

No Client ID or Secret found in configuration. Triggering configuration now.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1028a957c]

goroutine 1 [running]:
github.com/twitchdev/twitch-cli/cmd.loginCmdRun(0x1400016d200?, {0x140001981e0, 0x0, 0x3})
	/go/src/github.com/twitchdev/twitch-cli/cmd/token.go:53 +0x18c
github.com/spf13/cobra.(*Command).execute(0x102faa780, {0x140001981b0, 0x3, 0x3})
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x554
github.com/spf13/cobra.(*Command).ExecuteC(0x102faa500)
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x310
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/twitchdev/twitch-cli/cmd.Execute()
	/go/src/github.com/twitchdev/twitch-cli/cmd/root.go:26 +0x24
main.main()
	/go/src/github.com/twitchdev/twitch-cli/main.go:54 +0x2fc
Xemdo added a commit that referenced this issue Nov 28, 2023
@Xemdo Xemdo mentioned this issue Nov 28, 2023
4 tasks
@Xemdo Xemdo linked a pull request Nov 28, 2023 that will close this issue
4 tasks
@Xemdo Xemdo closed this as completed in #293 Dec 3, 2023
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

Successfully merging a pull request may close this issue.

1 participant