oapi-sdk-java icon indicating copy to clipboard operation
oapi-sdk-java copied to clipboard

使用SDK调用飞书接口,经常出现client time out.

Open savenYPF opened this issue 2 years ago • 3 comments

Client client = Client.newBuilder(appId, appSecret).logReqAtDebug(true).build(); ListAppTableRecordResp recordResp = client.bitable().appTableRecord().list(ListAppTableRecordReq.newBuilder() .appToken(appToken) .tableId(tableId) .displayFormulaRef(false) .pageToken(index) .pageSize(MAX_PAGE_LIMIT) .build()); 按照readme文档的安装步骤,maven前后分别引入了2.0.6和2.0.10版本的sdk依赖。用以上代码调用飞书接口,经常出现 client time out异常。

savenYPF avatar Jan 05 '23 02:01 savenYPF

我也遇到了同样的问题,设置 Client feishuPushClient=Client.newBuilder(appId,appSecret) .requestTimeout(60, TimeUnit.SECONDS) .build(); 不起作用

yipulash avatar Mar 13 '23 03:03 yipulash

https://asiainfo-sec.feishu.cn/docx/URFPd2vanoTEzwxylb1c18ConHh 1.4,1.5可以尝试一下

serein-morii avatar Dec 15 '23 15:12 serein-morii

增加超时还是会 client time out 建议加对象池,再retry

notatent avatar Mar 11 '24 03:03 notatent