Error running cmd: ziti fabric list routers

Situation

I am trying to debug why I cannot get my browser on my mobile to connect to a remote server by using the Ziti Mobile Edge tunneller

So.. I thought I would run a few checks.. the following is an error when running the following command.

ziti fabric list routers

panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric.outputRouters(0xc0001b1b00, {0xc000011008, 0x1, 0x7}, 0xc0001b1b00)

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric/list.go:317 +0xa1c

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric.runListRouters(0xe3b840)

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric/list.go:285 +0x65

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric.newListCmdForEntityType.func1(0xc000422a00, {0x37bdab8, 0x0, 0x0})

github.com/openziti/ziti/ziti/cmd/ziti/cmd/fabric/list.go:73 +0x70

github.com/spf13/cobra.(*Command).execute(0xc000422a00, {0x37bdab8, 0x0, 0x0})

github.com/spf13/cobra@v1.4.0/command.go:860 +0x5f8

github.com/spf13/cobra.(*Command).ExecuteC(0x36d8040)

github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bc

github.com/spf13/cobra.(*Command).Execute(...)

github.com/spf13/cobra@v1.4.0/command.go:902

github.com/openziti/ziti/ziti/cmd/ziti/cmd.Execute()

github.com/openziti/ziti/ziti/cmd/ziti/cmd/cmd.go:79 +0x38

main.main()

github.com/openziti/ziti/ziti/cmd/ziti/main.go:24 +0x17

This could relate to this post.. but I dont know for sure

Hi, thank you for reporting the issue. This is a bug related to some data that wasn’t being used yet, but was being displayed being removed. It’s fixed in v0.25.5, which will hopefully be released next week.

In the meantime as a workaround if you use the Ziti CLI from v0.24.13 it should work.

Cheers,
Paul

1 Like

Added an issue as fyi to others: ziti fabric commands panic · Issue #669 · openziti/ziti · GitHub