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

SDK Client request 经常报 socketTimeOut 配置了 requestTimeout 不起作用

Open yipulash opened this issue 2 years ago • 0 comments

BatchCreateAppTableRecordReq req = BatchCreateAppTableRecordReq.newBuilder() .appToken(feishuBitableConfigDO.getAppToken()) .tableId(feishuBitableConfigDO.getTableId()) .batchCreateAppTableRecordReqBody( BatchCreateAppTableRecordReqBody.newBuilder() .records(appTableRecordList.toArray(new AppTableRecord[] {})) .build() ).build(); feishuBitableRecordLogDO.setRequest(JSON.toJSONString(req)); BatchCreateAppTableRecordResp resp = null; try{ resp = feishuPushClient.bitable().appTableRecord().batchCreate(req); }catch(Exception e){ log.error("Exception",e); feishuBitableRecordLogDO.setErrorInfo(e.toString()); } 经常报 SocketTimeoutException;设置了 Client feishuPushClient=Client.newBuilder(appId,appSecret) .requestTimeout(60, TimeUnit.SECONDS) .build(); 不起作用

yipulash avatar Mar 13 '23 03:03 yipulash