I'm encountering the following error when requesting any toplist with my own code and with the gospshell example:
waiting for toplist 0xc2080238c0
panic: spotify: unhandled toplist type
goroutine 20 [running]:
runtime.panic(0x6bd500, 0xc208000f20)
/usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/op/go-libspotify/spotify.go_toplistbrowse_complete(0x7fe424000de0, 0xc20803a0d0)
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:1164 +0xa5
github.com/op/go-libspotify/spotify._Cfunc_sp_session_process_events(0x7fe43400b030, 0xc208000ee8, 0x7fe43ad59ec0)
github.com/op/go-libspotify/spotify/_obj/_cgo_defun.c:1016 +0x31
github.com/op/go-libspotify/spotify.(*Session).processEvents(0xc208042640)
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:799 +0xdf
github.com/op/go-libspotify/spotify.func路001()
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:218 +0x134
created by github.com/op/go-libspotify/spotify.NewSession
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:219 +0x2da
goroutine 16 [IO wait]:
net.runtime_pollWait(0x7fe43aee9818, 0x72, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc208028450, 0x72, 0x0, 0x0)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc208028450, 0x0, 0x0)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).accept(0xc2080283f0, 0x85cb18, 0x0, 0x7fe43aee8400, 0xb)
/usr/lib/go/src/pkg/net/fd_unix.go:409 +0x343
net.(*TCPListener).AcceptTCP(0xc20803a020, 0x4d2343, 0x0, 0x0)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:234 +0x5d
net/http.tcpKeepAliveListener.Accept(0xc20803a020, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/http/server.go:1947 +0x4b
net/http.(*Server).Serve(0xc2080041e0, 0x7fe43aee9a80, 0xc20803a020, 0x0, 0x0)
/usr/lib/go/src/pkg/net/http/server.go:1698 +0x91
net/http.(*Server).ListenAndServe(0xc2080041e0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/http/server.go:1688 +0x14d
net/http.ListenAndServe(0xc208000a40, 0x6, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/http/server.go:1778 +0x79
main.main()
/.../main.go:72 +0xe82
goroutine 19 [finalizer wait]:
runtime.park(0x421c70, 0xba6510, 0xb92ce9)
/usr/lib/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xba6510, 0xb92ce9)
/usr/lib/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
goroutine 17 [syscall]:
runtime.cgocallbackg()
/usr/lib/go/src/pkg/runtime/cgocall.c:244 +0x4c
runtime.cgocallback_gofunc(0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/runtime/asm_amd64.s:785 +0x67
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
goroutine 22 [select]:
github.com/op/go-libspotify/spotify.(*Session).processBackground(0xc208042640)
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:822 +0x25f
created by github.com/op/go-libspotify/spotify.NewSession
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:225 +0x363
goroutine 23 [select]:
main.ProcessSpotifyEvents()
/.../spotify.go:55 +0x593
created by main.main
/.../main.go:41 +0x5be
goroutine 24 [sleep]:
time.Sleep(0x3b9aca00)
/usr/lib/go/src/pkg/runtime/time.goc:39 +0x31
main.(*Broadcaster).Run(0xc2080227e0)
/.../broadcaster.go:46 +0x26
created by main.main
/.../main.go:59 +0xc3e
goroutine 25 [select]:
main.(*Hub).Run(0xba7ba0)
/.../hub.go:19 +0x601
created by main.main
/.../main.go:60 +0xc59
goroutine 18 [syscall]:
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
goroutine 26 [IO wait]:
net.runtime_pollWait(0x7fe43aee9768, 0x72, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc2080291e0, 0x72, 0x0, 0x0)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc2080291e0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208029180, 0xc20800ec00, 0x400, 0x400, 0x0, 0x7fe43aee8400, 0xb)
/usr/lib/go/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20803a088, 0xc20800ec00, 0x400, 0x400, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/net.go:122 +0xe7
bufio.(*Reader).fill(0xc208004840)
/usr/lib/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Read(0xc208004840, 0xc208000e88, 0x2, 0x8, 0x2, 0x0, 0x0)
/usr/lib/go/src/pkg/bufio/bufio.go:175 +0x230
github.com/gorilla/websocket.(*Conn).readFull(0xc208058000, 0xc208000e88, 0x2, 0x8, 0x0, 0x0)
/.../_vendor/src/github.com/gorilla/websocket/conn.go:524 +0xb0
github.com/gorilla/websocket.(*Conn).advanceFrame(0xc208058000, 0x26, 0x0, 0x0)
/.../_vendor/src/github.com/gorilla/websocket/conn.go:548 +0x166
github.com/gorilla/websocket.(*Conn).NextReader(0xc208058000, 0x85c9d0, 0x0, 0x0, 0x0, 0x0)
/.../_vendor/src/github.com/gorilla/websocket/conn.go:688 +0x77
github.com/gorilla/websocket.(*Conn).ReadMessage(0xc208058000, 0xc208000e60, 0x0, 0x0, 0x0, 0x0, 0x0)
/.../_vendor/src/github.com/gorilla/websocket/conn.go:751 +0x6e
main.(*Connection).ReadPump(0xc208000db0)
/.../connection.go:44 +0x180
main.HandleWebSocket(0x7fe43aee9cf8, 0xc20803c320, 0xc2080269c0)
/.../main.go:101 +0x3fe
net/http.HandlerFunc.ServeHTTP(0x85c9e8, 0x7fe43aee9cf8, 0xc20803c320, 0xc2080269c0)
/usr/lib/go/src/pkg/net/http/server.go:1235 +0x40
net/http.(*ServeMux).ServeHTTP(0xc208022bd0, 0x7fe43aee9cf8, 0xc20803c320, 0xc2080269c0)
/usr/lib/go/src/pkg/net/http/server.go:1511 +0x1a3
net/http.serverHandler.ServeHTTP(0xc2080041e0, 0x7fe43aee9cf8, 0xc20803c320, 0xc2080269c0)
/usr/lib/go/src/pkg/net/http/server.go:1673 +0x19f
net/http.(*conn).serve(0xc208048480)
/usr/lib/go/src/pkg/net/http/server.go:1174 +0xa7e
created by net/http.(*Server).Serve
/usr/lib/go/src/pkg/net/http/server.go:1721 +0x313
goroutine 27 [select]:
main.(*Connection).WritePump(0xc208000db0)
/.../connection.go:84 +0x2e5
created by main.HandleWebSocket
/.../main.go:100 +0x3ee
goroutine 28 [semacquire]:
sync.runtime_Semacquire(0xc208000f18)
/usr/lib/go/src/pkg/runtime/sema.goc:199 +0x30
sync.(*WaitGroup).Wait(0xc2080238d8)
/usr/lib/go/src/pkg/sync/waitgroup.go:129 +0x14b
github.com/op/go-libspotify/spotify.(*toplist).Wait(0xc2080238c0)
/.../_vendor/src/github.com/op/go-libspotify/spotify/libspotify.go:2401 +0x66
main.NewAlbumsToplistMessage(0xc208000e86, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0)
/.../messages.go:141 +0x185
main.HandleAlbumsToplist(0xc208000db0, 0xc208000e60, 0xe, 0x6b99e0, 0xc2080237a0)
/.../messages.go:222 +0x183
created by main.(*Connection).ReadPump
/.../connection.go:63 +0x43b