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

报错 #47

Closed
binad2022 opened this issue Feb 16, 2023 · 10 comments
Closed

报错 #47

binad2022 opened this issue Feb 16, 2023 · 10 comments

Comments

@binad2022
Copy link

[WARNING]2023/02/16 09:05:35 logger.go:33: send message error: %v
Post "": unsupported protocol scheme ""
[WARNING]2023/02/16 09:05:35 logger.go:33: process request failed: %v
Post "": unsupported protocol scheme ""

不知道啥问题

@eryajf
Copy link
Owner

eryajf commented Feb 16, 2023

是从来就没有成功过,还是偶尔会报这个呢

@binad2022
Copy link
Author

是从来就没有成功过,还是偶尔会报这个呢

昨天是成功了,升级了新版之后就g了

@eryajf
Copy link
Owner

eryajf commented Feb 16, 2023

升级之后一次也没有成功过吗,你给机器人发的什么消息,报的这个错误呢,请给内容给详细点

@binad2022
Copy link
Author

升级之后一次也没有成功过吗,你给机器人发的什么消息,报的这个错误呢,请给内容给详细点

比如查询北京天气之类的 今天一次都没成功过

@tanaer
Copy link

tanaer commented Feb 16, 2023

同样问题,刚安装配置完, 日志 如下

[INFO]2023/02/16 18:46:25 logger.go:21: dingtalk callback parameters: &public.ReceiveMsg{ConversationID:"", AtUsers:[]struct { DingtalkID string "json:"dingtalkId"" }(nil), ChatbotUserID:"", MsgID:"", SenderNick:"", IsAdmin:false, SessionWebhookExpiredTime:0, CreateAt:0, ConversationType:"", SenderID:"", ConversationTitle:"", IsInAtList:false, SessionWebhook:"", Text:public.Text{Content:""}, RobotCode:"", Msgtype:""}

[WARNING]2023/02/16 18:46:30 logger.go:33: send message error: %v
Post "": unsupported protocol scheme ""

[WARNING]2023/02/16 18:46:30 logger.go:33: process request failed: %v
Post "": unsupported protocol scheme ""

@eryajf
Copy link
Owner

eryajf commented Feb 16, 2023

你们最新版是通过docker部署的吗,随后我看看能否复现下

@tanaer
Copy link

tanaer commented Feb 16, 2023

你们最新版是通过docker部署的吗,随后我看看能否复现下

通过docker一键部署的 和 下载二进制文件启动 都会这样。

@eryajf
Copy link
Owner

eryajf commented Feb 16, 2023

同样问题,刚安装配置完, 日志 如下

[INFO]2023/02/16 18:46:25 logger.go:21: dingtalk callback parameters: &public.ReceiveMsg{ConversationID:"", AtUsers:[]struct { DingtalkID string "json:"dingtalkId"" }(nil), ChatbotUserID:"", MsgID:"", SenderNick:"", IsAdmin:false, SessionWebhookExpiredTime:0, CreateAt:0, ConversationType:"", SenderID:"", ConversationTitle:"", IsInAtList:false, SessionWebhook:"", Text:public.Text{Content:""}, RobotCode:"", Msgtype:""}

[WARNING]2023/02/16 18:46:30 logger.go:33: send message error: %v Post "": unsupported protocol scheme ""

[WARNING]2023/02/16 18:46:30 logger.go:33: process request failed: %v Post "": unsupported protocol scheme ""

我这边验证看下来没有问题。

看了下你的这个信息,从钉钉群回调给程序的内容都是空的,也就导致了程序不知道该往哪儿 send message,按理说回调参数的内容不应该会因为这次版本升级而为空的。

我有个建议,你可以尝试重新创建一下应用,以及机器人,然后再看看效果

@tanaer
Copy link

tanaer commented Feb 17, 2023

使用0.1.1 机器人可以正常上线和对话了

但在钉钉后台点击调试 和 上线时 run.log还是有

[WARNING]2023/02/17 12:26:49 logger.go:33: 从钉钉回调过来的内容为空,根据过往的经验,或许重新创建一下机器人,能解决这个问题
[WARNING]2023/02/17 12:26:56 logger.go:33: unmarshal request body failed: %v
 unexpected end of JSON input
[WARNING]2023/02/17 12:26:56 logger.go:33: 从钉钉回调过来的内容为空,根据过往的经验,或许重新创建一下机器人,能解决这个问题

正常对话不会有

@eryajf
Copy link
Owner

eryajf commented Feb 17, 2023

那应该是调试的时候返回的信息为空所以会有这个错误,可忽略

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants