Panic runtime error when listing services

I was trying out the quickstart tutorial (customerregistry), created the service, but then got an error when listing my services with the CLI. Via the web console, I do see my service.

$ kalix services list
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:*textPrinter).printServiceList(0xc000cf020d, {0xc000257100, 0x1, 0x9ccc6f})
	/home/circleci/project/cli/internal/printer/printer.go:1099 +0x36e*textPrinter).printText(0xc000438040, {0x16d5080, 0xc0007b38f0})
	/home/circleci/project/cli/internal/printer/printer.go:204 +0x15c*Printer).Object(0xc000257100, {0x16d5080, 0xc0007b38f0})
	/home/circleci/project/cli/internal/printer/printer.go:99 +0x6a
main.(*listServiceOptions).listServices(0x1548420, 0xc0008bdda0, {0xc0008bdd78, 0x0, 0x0})
	/home/circleci/project/cli/cmd/kalix/service.go:273 +0xc7*Command).execute(0xc00054bb80, {0x2bc3dc0, 0x0, 0x0})
	/home/circleci/go/pkg/mod/ +0x60e*Command).ExecuteC(0xc00056a000)
	/home/circleci/go/pkg/mod/ +0x3bc
	/home/circleci/project/cli/cmd/kalix/main.go:55 +0x1e

Any idea what I’m doing wrong?

Hi there,

Thank you for exploring Kalix.

This looks like a bug on our side.
Did you log in with the CLI with kalix auth login before trying to list services?


yes, I did:

$ kalix auth login
You are already logged in as ***********, would you like to log that user out and log in as a different user? [y]es/[N]o: 
✔ No
Login cancelled.

Thanks, I’ll file a bug. And you are on the current 2.0.4 version?

yes, I am

$ kalix version

Alright, thank you for your patience.

kalix 2.0.5 is ready for you with a fix for this behaviour.