Wercker CLI bug?

Just logged a bug against Wercker CLI bug… https://github.com/wercker/wercker/issues/336 Not sure if it is genuine and if it deserves a fix? The issue is that it will complain invalid credential even correct credential provided if the session name has more than 30 chars.

scaab101:~ uadmin$ wercker  –debug login

INFO[0000]     main| Login with your Wercker Account. If you don’t have a Wercker Account, head over to https://app.wercker.com to create one.

Username: luhuang

Password:

Sessions name [default: werckercli-scaab101.us.xxxxxx.com]:

DEBU[0024] authenti| Unable to read the session name               Error=unexpected newline

DEBU[0025] authenti| Authentication failed                         Error=Invalid credentials

ERRO[0025]     main| Unable to log into wercker                    Error=Invalid credentials

PANI[0025]     root| Invalid credentials                          

panic: (*logrus.Entry) (0x7869a0,0xc420426fc0)

goroutine 1 [running]:

panic(0x7869a0, 0xc420426fc0)

/usr/local/go/src/runtime/panic.go:500 +0x1a1

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.Entry.log(0xc420012c40, 0xc4203b0150, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc420479600, 0xc4201ddfa0, …)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:113 +0x3b7

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).Panic(0xc420479748, 0xc4204796f0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:158 +0x111

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).Panicln(0xc420479748, 0xc4204798b0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:253 +0xe9

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Logger).Panicln(0xc420012c40, 0xc4204798b0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/logger.go:210 +0xc7

github.com/wercker/wercker/cmd.(*SoftExit).Exit(0xc4204798a8, 0xc4204798b0, 0x1, 0x1, 0xc4203faa60, 0xc420028028)

/go/src/github.com/wercker/wercker/cmd/main.go:387 +0x62

github.com/wercker/wercker/cmd.cmdLogin(0xc4200284e8, 0xc420331ba0, 0xc4202f2ff0)

/go/src/github.com/wercker/wercker/cmd/main.go:539 +0x486

github.com/wercker/wercker/cmd.glob..func7(0xc4200da900)

/go/src/github.com/wercker/wercker/cmd/main.go:216 +0x235

github.com/wercker/wercker/vendor/github.com/codegangsta/cli.Command.Run(0x79dd0e, 0x5, 0x79ca24, 0x1, 0x7a4e79, 0x10, 0x0, 0x0, 0x0, 0x0, …)

/go/src/github.com/wercker/wercker/vendor/github.com/codegangsta/cli/command.go:113 +0x7bb

github.com/wercker/wercker/vendor/github.com/codegangsta/cli.(*App).Run(0xc4201431e0, 0xc42000a180, 0x3, 0x3, 0x0, 0x0)

/go/src/github.com/wercker/wercker/vendor/github.com/codegangsta/cli/app.go:156 +0x630

main.main()

/go/src/github.com/wercker/wercker/main.go:25 +0x53

scaab101:~ uadmin$ clear

scaab101:~ uadmin$

scaab101:~ uadmin$

scaab101:~ uadmin$

scaab101:~ uadmin$ wercker  –debug login

INFO[0000]     main| Login with your Wercker Account. If you don’t have a Wercker Account, head over to https://app.wercker.com to create one.

Username: luhuang

Password:

Sessions name [default: werckercli-scaab101.us.xxxxxx.com]: hgoehgghghogugougughgohghgehghghghghgoeghoegh

DEBU[0016] authenti| Authentication failed                         Error=Invalid credentials

ERRO[0016]     main| Unable to log into wercker                    Error=Invalid credentials

PANI[0016]     root| Invalid credentials                          

panic: (*logrus.Entry) (0x7869a0,0xc4200791c0)

goroutine 1 [running]:

panic(0x7869a0, 0xc4200791c0)

/usr/local/go/src/runtime/panic.go:500 +0x1a1

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.Entry.log(0xc4200bcb00, 0xc42000bb30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc420483600, 0xc4202079e0, …)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:113 +0x3b7

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).Panic(0xc420483748, 0xc4204836f0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:158 +0x111

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).Panicln(0xc420483748, 0xc4204838b0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:253 +0xe9

github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Logger).Panicln(0xc4200bcb00, 0xc4204838b0, 0x1, 0x1)

/go/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/logger.go:210 +0xc7

github.com/wercker/wercker/cmd.(*SoftExit).Exit(0xc4204838a8, 0xc4204838b0, 0x1, 0x1, 0xc4201f8500, 0xc420100018)

/go/src/github.com/wercker/wercker/cmd/main.go:387 +0x62