Open preexo opened 6 years ago
I was wrong, it is still hapenning.
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 8 [running]:
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2.NewNotificationFromRaw(0xc4203a2000, 0x8, 0x8, 0x0, 0xc420252250, 0xf, 0x0, 0x0, 0x0, 0x0, ...)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/types.go:1025 +0xa0e
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).convertRaw(0xc42016c000, 0xc420252231, 0x1, 0xc4203a2000, 0x8, 0x8, 0x14b3cd8, 0xc4202d6000)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/channels.go:307 +0x2d5
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).handlePrivateDataMessage(0xc42016c000, 0xc420252231, 0x1, 0xc4203a2000, 0x8, 0x8, 0x13e1901, 0xc42021c300, 0x0, 0x0)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/channels.go:182 +0x7e
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).handlePrivateChannel(0xc42016c000, 0xc42014e700, 0x3, 0x4, 0x0, 0x0)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/channels.go:107 +0xdb
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).handleChannel(0xc42016c000, 0xc420376c00, 0x6d, 0x600, 0x1, 0x20)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/channels.go:46 +0x347
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).handleMessage(0xc42016c000, 0xc420376c00, 0x6d, 0x600, 0x0, 0x0)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/client.go:299 +0x110
bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).listenUpstream(0xc42016c000)
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/client.go:259 +0x164
created by bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket.(*Client).Connect
/Users/tim/Projects/go-workspace/src/bitbucket.org/preexo/bitfinex2/vendor/github.com/bitfinexcom/bitfinex-api-go/v2/websocket/client.go:228 +0x8b
for now marking help wanted and in the backlog. may promote to bug eventually though.
Looks like some message couldn't be decoded.
Not sure how to tackle this, anyone an idea? Should we be catching this before it get's through the switch into notificationFromRaw?