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

无法发送语音文件等问题 #516

Open
1 of 3 tasks
youlanan opened this issue Dec 14, 2024 · 0 comments
Open
1 of 3 tasks

无法发送语音文件等问题 #516

youlanan opened this issue Dec 14, 2024 · 0 comments

Comments

@youlanan
Copy link

youlanan commented Dec 14, 2024

当前GSK版本:519(webhook)

  • 上传语音失败
    问题描述:
    报错:语音上传失败。
    传入本地音频,经检查gensokyo\channel_temp\等目录下已生成转换后文件,外部可以正常访问到资源
    24/12/14:新发现部分音频url可以正常转换发送
    25/1/2:回退历史支持webhook版本发现,发送本地音频均报错,之后有空会试试先将本地音频转为url后再返回给gsk
    25/1/7【临时性解决】:将音频copy到\gensokyo\channel_temp\下并拼接url再次返回给gsk,gsk会将其作为网络媒体正常获取转码后发送
    控制台输出:
2024/12/14 10:07:58 音频转码ing
2024/12/14 10:07:58 INFO: [OPENAPI]POST https://api.sgroup.qq.com/v2/groups/BBB6518238F2A220750E8970A2F21187/files, traceID:eef1e2f4d88f54f9242aca13eaaefc00, status:400 Bad Request, elapsed:82.0419ms req: {"file_type":1,"file_data":"AiMh...省略...gg="}, resp: {"message":"富媒体文件格式不支持","code":850019,"err_code":40034002,"trace_id":"eef1e2f4d88f54f9242aca13eaaefc00"}
2024/12/14 10:07:58 Error messageToCreate: code:400, text:{"message":"富媒体文件格式不支持","code":850019,"err_code":40034002,"trace_id":"eef1e2f4d88f54f9242aca13eaaefc00"}, traceID:eef1e2f4d88f54f9242aca13eaaefc00
2024/12/14 10:07:58 Error: Expected RichMediaMessage type for key local_record.
2024/12/14 10:07:58 INFO: [OPENAPI]POST https://api.sgroup.qq.com/v2/groups/BBB6518238F2A220750E8970A2F21187/messages, traceID:cae97f47c63e3f66c903ebc7889f8ca4, status:200 OK, elapsed:437.3204ms req: {"content":"错误: 上传语音失败","media":{"file_info":""},"msg_id":"ROBOT1.0_NzfJXjmePeWMWHsHqcilLwA7tAm40xgXnjgHvJYxeJ4lq1gMHt7Um0iVLu3YgUULlAvsbcAdwP1LAt0wE0x5ZVKTBl0bDXXBybve5OK.Tdk!","msg_seq":1}, resp: {"id":"ROBOT1.0_lDHtNyDs9widsI6hfja0EazwOHhVd5iYfNFT.DX3wrXbpP6DK6X7aEE9Z-tG39MGVbUNCLfGj790wzX7i9N27g!!","timestamp":"2024-12-14T10:08:07+08:00"}
  • 期望发送MP4视频
    问题描述:本地mp4视频文件无法发送
    开放平台API文档中允许发送mp4视频媒体,但目前未在项目文档和语雀文档中找到对应示例,不知道有没有相关功能或支持计划?

  • 不明ERROR
    该问题是修改配置文件时错误开启了非公域事件引起,关闭后未再出现错误

@youlanan youlanan changed the title 更新513并从ws切换webhook后出现的问题 关于音视频发送的问题和建议 Dec 18, 2024
@youlanan youlanan changed the title 关于音视频发送的问题和建议 关于音视频媒体发送的问题 Dec 18, 2024
@youlanan youlanan changed the title 关于音视频媒体发送的问题 无法发送语音文件等问题 Dec 24, 2024
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

1 participant