-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What is the problem?
When running twitch api get users/extensions -q user_id=<user id>, the cli panics.
Operating System
All
Architecture Version (x86, x64, arm, etc)
All
Steps to reproduce
- Run
twitch api get users/extensions -q user_id=57047445
Any User ID should do.
Relevant log output
> twitch api get users/extensions -q user_id=57047445
panic: interface conversion: interface {} is map[string]interface {}, not []interface {}
goroutine 1 [running]:
github.com/twitchdev/twitch-cli/internal/api.NewRequest({0xaa8a42, 0x3}, {0xc000127d48, 0x11}, {0xc0000900e0, 0x1, 0xc0000a2500?}, {0xf698a8, 0x0, 0x0}, ...)
/go/src/github.com/twitchdev/twitch-cli/internal/api/api.go:178 +0x11c5
github.com/twitchdev/twitch-cli/cmd.cmdRun(0x98c8a0?, {0xc0000a61e0?, 0x3?, 0x3?})
/go/src/github.com/twitchdev/twitch-cli/cmd/api.go:127 +0x2b0
github.com/spf13/cobra.(*Command).execute(0x98c8a0, {0xc0000a61b0, 0x3, 0x3})
/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0x98da20)
/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x39d
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 +0x25
main.main()
/go/src/github.com/twitchdev/twitch-cli/main.go:16 +0x50Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working