Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot backend crashes when user sends "Hi" command (while not being in a tx) #16

Closed
LucaBernstein opened this issue Nov 3, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LucaBernstein
Copy link
Owner

bc_tg_bot | 2021/11/03 20:28:27 runtime error: index out of range [5] with length 5
bc_tg_bot | gopkg.in/tucnak/telebot%2ev2.(*Bot).debug
bc_tg_bot | 	/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.0/util.go:14
bc_tg_bot | gopkg.in/tucnak/telebot%2ev2.(*Bot).deferDebug
bc_tg_bot | 	/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.0/util.go:25
bc_tg_bot | runtime.gopanic
bc_tg_bot | 	/usr/local/go/src/runtime/panic.go:1038
bc_tg_bot | runtime.goPanicIndex
bc_tg_bot | 	/usr/local/go/src/runtime/panic.go:90
bc_tg_bot | github.com/LucaBernstein/beancount-bot-tg/bot.(*SimpleTx).Input
bc_tg_bot | 	/src/bot/transactionBuilder.go:120
bc_tg_bot | github.com/LucaBernstein/beancount-bot-tg/bot.(*BotController).handleTextState
bc_tg_bot | 	/src/bot/controller.go:146
bc_tg_bot | gopkg.in/tucnak/telebot%2ev2.(*Bot).handle.func1
bc_tg_bot | 	/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.0/bot.go:569
bc_tg_bot | gopkg.in/tucnak/telebot%2ev2.(*Bot).runHandler.func1
bc_tg_bot | 	/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.0/util.go:35
bc_tg_bot | runtime.goexit
bc_tg_bot | 	/usr/local/go/src/runtime/asm_amd64.s:1581
@LucaBernstein LucaBernstein added the bug Something isn't working label Nov 3, 2021
@LucaBernstein LucaBernstein self-assigned this Nov 3, 2021
LucaBernstein added a commit that referenced this issue Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant