invalid memory address or nil pointer dereference #13
Owner
```
telegram-llm-bot | 2024/03/12 03:56:52 INFO /hey
telegram-llm-bot | panic: runtime error: invalid memory address or nil pointer dereference
telegram-llm-bot | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f]
telegram-llm-bot |
telegram-llm-bot | goroutine 14 [running]:
telegram-llm-bot | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc0001636e0?, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot | /build/bot/middleware.go:15 +0x9f
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000415000, 0xc0002b97a0, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000415000, 0xc000441fb0?, {0x30e4db6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1()
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5
telegram-llm-bot | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165
```
bug
label
Author
Owner
```
telegram-llm-bot | 2024/03/12 16:38:47 INFO /summarize !BADKEY="/summarize https://planetscale.com/blog/generics-can-make-your-go-code-slower"
telegram-llm-bot | panic: runtime error: invalid memory address or nil pointer dereference
telegram-llm-bot | [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7dc17f]
telegram-llm-bot |
telegram-llm-bot | goroutine 390 [running]:
telegram-llm-bot | telegram-ollama-reply-bot/bot.(*Bot).chatTypeStatsCounter(0xc00007f700?, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot | /build/bot/middleware.go:15 +0x9f
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdateWithMiddlewares(0xc000406000, 0xc0002a77a0, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:74 +0x283
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*HandlerGroup).processUpdate(0xc000406000, 0xc000989610?, {0x30e4dc5, 0x0, 0xc00177e008, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/handler_group.go:50 +0x9e
telegram-llm-bot | github.com/mymmrac/telego/telegohandler.(*BotHandler).Start.func1()
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:109 +0x1e5
telegram-llm-bot | created by github.com/mymmrac/telego/telegohandler.(*BotHandler).Start in goroutine 1
telegram-llm-bot | /go/pkg/mod/github.com/mymmrac/telego@v0.29.1/telegohandler/bot_handler.go:98 +0x165
telegram-llm-bot | 2024/03/12 16:39:26 INFO Running api as !BADKEY="map[id:6388461768 is_bot:true name:LLM Bot username:SkobkinLLMBot]"
```
Trying to fix #13. Adding logging to the middleware.
Fixing a bunch of bugs and making some improvements #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?