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

获取文件列表时,出现错误 #105

Closed
hhymx opened this issue Oct 19, 2024 · 5 comments
Closed

获取文件列表时,出现错误 #105

hhymx opened this issue Oct 19, 2024 · 5 comments
Labels
question 对错误或其它问题进行提问

Comments

@hhymx
Copy link

hhymx commented Oct 19, 2024

问题描述

cn.evolvefield.onebot.sdk.util.json.GroupFilesAdapter
22行 fileSize = obj.long("file_size")
没有file_size 应该是size

复现

调用group.getFiles().getRoot()

Overflow 版本

1.0.0.519-0d68f08-SNAPSHOT

其他组件版本

No response

系统日志

No response

网络日志

Caused by: com.google.gson.JsonParseException: Can`t find `file_size`
	at cn.evolvefield.onebot.sdk.util.JsonHelperKt.long(JsonHelper.kt:78)
	at cn.evolvefield.onebot.sdk.util.json.GroupFilesAdapter$Files.deserializeFromJson(GroupFilesAdapter.kt:22)
	at cn.evolvefield.onebot.sdk.util.json.GroupFilesAdapter$Files.deserializeFromJson(GroupFilesAdapter.kt:11)
	at cn.evolvefield.onebot.sdk.util.JsonDeserializerKt$DefaultImpls.deserialize(JsonDeserializerKt.kt:12)
	... 124 common frames omitted

补充信息

No response

@hhymx hhymx added the question 对错误或其它问题进行提问 label Oct 19, 2024
@hhymx hhymx changed the title 获取文件列表是,出现错误 获取文件列表时,出现错误 Oct 19, 2024
@MrXiaoM
Copy link
Owner

MrXiaoM commented Oct 19, 2024

不是 size,就是 file_size。
Onebot 11 没有文件接口
go-cqhttp 是 file_size
652c2a831ce769eb62718455eec337dd

相比论坛的回复,你依然没有按照模板要求提供更多有效的信息,这个问题不会再继续处理

@MrXiaoM MrXiaoM closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@MrXiaoM
Copy link
Owner

MrXiaoM commented Oct 19, 2024

虽然你没提供信息,我也猜到了,是 NapCat 的问题,他们在这块没遵守 go-cqhttp 的接口规范,自行反馈

MrXiaoM added a commit that referenced this issue Jan 13, 2025
@QianFuv
Copy link

QianFuv commented Jan 29, 2025

emmm 值得注意的是napcat那边已经修好这个问题了 然后overflow又改了qwq

@MrXiaoM
Copy link
Owner

MrXiaoM commented Jan 29, 2025

emmm 值得注意的是napcat那边已经修好这个问题了 然后overflow又改了qwq

改了并不影响,这是改成了 file_sizesize 两个字段都尝试读取

@QianFuv
Copy link

QianFuv commented Jan 29, 2025

emmm 值得注意的是napcat那边已经修好这个问题了 然后overflow又改了qwq

改了并不影响,这是改成了 file_sizesize 两个字段都尝试读取

okok 那就没问题了 我放心升级awa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 对错误或其它问题进行提问
Projects
None yet
Development

No branches or pull requests

3 participants