running scrapbox list with tags causes interface conversion error
toshohirasawa opened this issue · 0 comments
toshohirasawa commented
Go version: 1.15.7 darwin/amd64
When I run scrapbox list <my project> <tags>
, an interface conversion error occurs as following:
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 1 [running]:
github.com/ohtomi/scrapbox/client.(*Client).ExecQuery(0xc000145d70, 0x15048a0, 0xc00001c118, 0x7ffeefbff676, 0xd, 0xc0000120f0, 0x1, 0x1, 0x0, 0x64, ...)
/Users/tosho/go/src/github.com/ohtomi/scrapbox/client/api_client.go:90 +0x11c5
github.com/ohtomi/scrapbox/cmd/scrapbox/command.(*ListCommand).FetchRelatedPages(0xc0000573d0, 0xc000145d70, 0x7ffeefbff676, 0xd, 0xc0000120f0, 0x1, 0x1, 0x0, 0x0, 0x8000103, ...)
/Users/tosho/go/src/github.com/ohtomi/scrapbox/cmd/scrapbox/command/list.go:21 +0x9d
github.com/ohtomi/scrapbox/cmd/scrapbox/command.(*ListCommand).Run(0xc0000573d0, 0xc0000120e0, 0x2, 0x2, 0xc000057350)
/Users/tosho/go/src/github.com/ohtomi/scrapbox/cmd/scrapbox/command/list.go:91 +0x696
github.com/mitchellh/cli.(*CLI).Run(0xc000138a00, 0xc000138a00, 0xc00000e960, 0xc000145f00)
/Users/tosho/go/src/github.com/mitchellh/cli/cli.go:262 +0x1cf
main.RunCustom(0xc0000120d0, 0x3, 0x3, 0xc00007d350, 0xc000000180)
/Users/tosho/go/src/github.com/ohtomi/scrapbox/cmd/scrapbox/cli.go:52 +0x1ae
main.Run(0xc0000120d0, 0x3, 0x3, 0xc0000180b8)
/Users/tosho/go/src/github.com/ohtomi/scrapbox/cmd/scrapbox/cli.go:27 +0x17b
main.main()
/Users/tosho/go/src/github.com/ohtomi/scrapbox/cmd/scrapbox/main.go:8 +0x65
I also tried:
list
without tags successfully returns all pages.list <my project> ''
also returns the same error.
Any idea to fix the problem?