indes / flowerss-bot

A telegram bot for rss reader. 一个支持应用内阅读的 Telegram RSS Bot。
https://flowerss-bot.now.sh/
MIT License
1.83k stars 239 forks source link

FATAL model/source.go:51 parse s https://gabrielsieben.tech/at: first path segment in URL cannot contain colon #178

Open kxxt opened 2 years ago

kxxt commented 2 years ago

机器人一直提示 处理中... 检查 docker 日志发现机器人已经崩溃重启

出现问题的命令: /sub @[channel user name here] https://gabrielsieben.tech/atom

/ _| | _____      _____ _ __ ___ ___
| |_| |/ _ \ \ /\ / / _ \ '__/ __/ __|
|  _| | (_) \ V  V /  __/ |  \__ \__ \
|_| |_|\___/ \_/\_/ \___|_|  |___/___/

2022/07/31 08:22:15 DB Path: /root/.flowerss/data.db
2022-07-31T08:22:15Z    INFO    bot/bot.go:38   init telegram bot       {"token": "XXXXXXXXXXXXXXX", "endpoint": "https://api.telegram.org"}
2022-07-31T08:22:16Z    INFO    task/task.go:21 Start task RssUpdateTask
2022-07-31T08:22:16Z    INFO    bot/bot.go:62   bot start version dev, commit none, built at unknown
2022-07-31T08:44:39Z    FATAL   model/source.go:51      parse s https://gabrielsieben.tech/at: first path segment in URL cannot contain colon
github.com/indes/flowerss-bot/internal/model.fetchFunc
/flowerss/internal/model/source.go:51
github.com/SlyMarbo/rss.FetchByFunc
/go/pkg/mod/github.com/!sly!marbo/rss@v1.0.3/rss.go:61
github.com/indes/flowerss-bot/internal/model.FindOrNewSourceByUrl
/flowerss/internal/model/source.go:90
github.com/indes/flowerss-bot/internal/bot.registFeed
/flowerss/internal/bot/service.go:73
github.com/indes/flowerss-bot/internal/bot.subCmdCtr
/flowerss/internal/bot/controller.go:119
gopkg.in/tucnak/telebot%2ev2.(*Bot).handle.func1
/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.1/bot.go:584
gopkg.in/tucnak/telebot%2ev2.(*Bot).runHandler.func1
/go/pkg/mod/gopkg.in/tucnak/telebot.v2@v2.4.1/util.go:34