larksuite / larksuite/oapi-sdk-java

第一次调用 /open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search 这个接口会报错

Open
#121 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
310
Forks
115
PR merge metrics
No merged PRs in 30d

Description

java.net.SocketTimeoutException: timeout
at com.lark.oapi.okio.Okio$4.newTimeoutException(Okio.java:295)
at com.lark.oapi.okio.AsyncTimeout.exit(AsyncTimeout.java:358)
at com.lark.oapi.okio.AsyncTimeout$2.read(AsyncTimeout.java:307)
at com.lark.oapi.okio.RealBufferedSource.indexOf(RealBufferedSource.java:448)
at com.lark.oapi.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:299)
at com.lark.oapi.okhttp.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.java:258)
at com.lark.oapi.okhttp.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.java:229)
at com.lark.oapi.okhttp.internal.connection.Exchange.readResponseHeaders(Exchange.java:112)
at com.lark.oapi.okhttp.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at com.lark.oapi.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:49)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:130)
at com.lark.oapi.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:149)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:130)
at com.lark.oapi.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:89)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at com.lark.oapi.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:80)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:157)
at com.lark.oapi.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:130)
at com.lark.oapi.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:164)
at com.lark.oapi.okhttp.RealCall.execute(RealCall.java:87)
at com.lark.oapi.core.httpclient.OkHttpTransport.execute(OkHttpTransport.java:93)
at com.lark.oapi.core.Transport.doSend(Transport.java:235)
at com.lark.oapi.core.Transport.send(Transport.java:185)
at com.lark.oapi.service.bitable.v1.resource.AppTableRecord.search(AppTableRecord.java:570)
at com.maliquankai.application.utils.FeiShuUtil.searchByTableId(FeiShuUtil.java:250)
at com.maliquankai.application.service.impl.FeiShuServiceImpl.UpdateBiTable(FeiShuServiceImpl.java:964)
at com.maliquankai.application.service.impl.FeiShuServiceImpl.lambda$updateBusinessBiTable$0(FeiShuServiceImpl.java:222)
at java.lang.Thread.run(Thread.java:748)

报错信息

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the first-call timeout for AppTableRecord.search and trace the request through OkHttpTransport.execute and Transport.send. Compare the SDK path with the reported FeiShuUtil.searchByTableId call; done means identifying the timeout cause and verifying that the search request no longer fails on its first call.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.