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

获取群组消息的时候,返回的next超出int最大值报错 #130

Closed
yayanan opened this issue Jul 27, 2022 · 3 comments
Closed

获取群组消息的时候,返回的next超出int最大值报错 #130

yayanan opened this issue Jul 27, 2022 · 3 comments

Comments

@yayanan
Copy link

yayanan commented Jul 27, 2022

Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: Numeric value (9040992949) out of range of int (-2147483648 - 2147483647)
这是源代码
public static void init() throws IOException {
long appId = xxxxxxx;
String userId = "xxxxxxxxxx";
String key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ClientConfiguration config = new ClientConfiguration();
config.setExpireTime(7 * 24 * 60 * 60L);
config.setAutoRenewSig(false);
ImClient client = ImClient.getInstance(appId, userId, key, config);
GetAppIdGroupListRequest request = GetAppIdGroupListRequest.builder()
.limit(50)
.groupType(GroupType.PUBLIC)
.next(0)
.build();
GetAppIdGroupListResult result = client.group.getAppIdGroupList(request);
System.out.println(request);
}

@yanglbme
Copy link
Member

感谢反馈,我们待会修复后,发个新版本

yanglbme added a commit that referenced this issue Jul 28, 2022
修复 int 数据溢出问题 (#130)
yanglbme added a commit that referenced this issue Jul 28, 2022
修复 int 数据溢出问题 (#130)
@yanglbme
Copy link
Member

v0.3.26 修复了此问题,请求参数、响应参数均为 long 型

@yayanan
Copy link
Author

yayanan commented Jul 28, 2022

感谢修复,速度真快!

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

2 participants