gitbito / CLI

Bito CLI (Command Line Interface) provides a command line interface to the Bito AI chat functionality. Over time, CLI will add more functions and new command options to support complex automation and workflows. This is a very early Alpha version. We would love to get your feedback on the new features or improvements.
https://bito.ai
Other
536 stars 74 forks source link

Bito cli intermittent not working #16

Closed zf0719 closed 10 months ago

zf0719 commented 1 year ago
root@siaphisprb08671:~# bito version
Error: unknown command "version" for "bito"
Run 'bito --help' for usage.
root@siaphisprb08671:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
root@siaphisprb08671:~#
root@siaphisprb08671:~# bito
A new version of Bito CLI was found, updating Bito CLI...

Please re-run "bito" to start using the latest version of Bito CLI.

Note: You can set auto-update to false in the config file to turn off the auto update for Bito CLI.

Sorry, it's us, not you. We had an issue. Please try again.
panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
log.Panic({0xc0000dba28?, 0x34?, 0xc0000db9f8?})
        /usr/local/go/src/log/log.go:388 +0x65
BITO/apiclient.processToken({0xc00014c224, 0x12}, {0x0, 0x0}, {0xc000028600, 0x12}, 0x0?)
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/apiclient/user-helper.go:246 +0x465
BITO/apiclient.VerifyEmailConfigurations({0x0, 0x0})
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/apiclient/user-helper.go:211 +0x4cd
BITO/cmd.setConf()
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/cmd/root.go:25 +0x1d
BITO/cmd.glob..func2(0xbf8040?, {0x8a3380?, 0x0?, 0x0?})
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/cmd/root.go:53 +0xae
github.com/spf13/cobra.(*Command).execute(0xbf8040, {0xc000024230, 0x0, 0x0})
        /home/mack3099/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xbf8040)
        /home/mack3099/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /home/mack3099/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
BITO/cmd.Execute()
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/cmd/root.go:63 +0x25
main.main()
        /mnt/d/BitoWorkSpace/Go Projects/BitoCLI/v4/bitocli/main.go:46 +0xd7
macky3099 commented 1 year ago

Hi @zf0719

Sorry for the issue you faced, we will look in to it and fix it.

Also, we will be adding the flag --version to check the version of Bito CLI.

Thanks!

bitoandy commented 1 year ago

Hi @zf0719,

New version 3.3 is now available. It should autoupdate if you had version 3.0 and above. Support for --version and -v is now available. We have also fixed the issue where you were seeing the error log.

Please try with version 3.3 and let us know if you face any issues.

jiahut commented 1 year ago

Version 3.3 seems to have become unresponsive during use, resembling a system freeze. I can confirm that internet connectivity is fully operational and the speed is remarkably fast.

bitoandy commented 1 year ago

Hi @jiahut ,

Thanks for reporting the issue, if possible can you share the log file, if you are using Linux/Mac it should be at ~/.bitoai/etc/logs/bitocli.log you can email it on support@bito.ai or attach it here.

Also were you able to kill and restart bito CLI?

bitoandy commented 1 year ago

Hi @jiahut ,

Let us know if you are still facing the issue or its resolved now?

macky3099 commented 1 year ago

Hi @jiahut,

With the version 3.4 of Bito CLI, this should be fixed. Can you please check and confirm if you still facing the same issue?

Thanks!

macky3099 commented 10 months ago

Hi @jiahut, I am closing this issue for now. Please feel free to reopen the issue if you face any issues further. Thanks!