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] Cannot use CLI against Get Extension Live Channels without extension_id #232

Closed
Xemdo opened this issue Apr 21, 2023 · 0 comments · Fixed by #233
Closed

[Bug] Cannot use CLI against Get Extension Live Channels without extension_id #232

Xemdo opened this issue Apr 21, 2023 · 0 comments · Fixed by #233
Assignees
Labels
bug Something isn't working

Comments

@Xemdo
Copy link
Contributor

Xemdo commented Apr 21, 2023

What is the problem?

Somewhat similar to #157

Running twitch api get extensions/live with only user_id and not extension_id panics and fails.

Operating System

All

Architecture Version (x86, x64, arm, etc)

All

Steps to reproduce

  1. twitch api get extensions/live -q user_id=57047445

Relevant log output

> twitch api get extensions/live -q user_id=57047445
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x803ea9]

goroutine 1 [running]:
github.com/twitchdev/twitch-cli/internal/api.NewRequest({0xb0de17, 0x3}, {0xc00015dcc0, 0x10}, {0xc000207000, 0x1, 0xc000223600?}, {0xfccdd0, 0x0, 0x0}, ...)
        /home/marc/shared/twitch-cli/internal/api/api.go:120 +0x6e9
github.com/twitchdev/twitch-cli/cmd.cmdRun(0xf531c0?, {0xc000202bd0?, 0x3?, 0x3?})
        /home/marc/shared/twitch-cli/cmd/api.go:127 +0x2b0
github.com/spf13/cobra.(*Command).execute(0xf531c0, {0xc000202ba0, 0x3, 0x3})
        /home/marc/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xf54340)
        /home/marc/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x39c
github.com/spf13/cobra.(*Command).Execute(...)
        /home/marc/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/twitchdev/twitch-cli/cmd.Execute()
        /home/marc/shared/twitch-cli/cmd/root.go:26 +0x25
main.main()
        /home/marc/shared/twitch-cli/main.go:54 +0x2b6
@Xemdo Xemdo added the bug Something isn't working label Apr 21, 2023
@Xemdo Xemdo changed the title [Bug] Cannot use CLI against Get Extension Live Channels [Bug] Cannot use CLI against Get Extension Live Channels without extension_id Apr 21, 2023
@Xemdo Xemdo self-assigned this Apr 21, 2023
@Xemdo Xemdo mentioned this issue Apr 21, 2023
4 tasks
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

Successfully merging a pull request may close this issue.

1 participant