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

Unhandled java.net.SocketTimeoutException despite setting :read-timeout and :connect-timeout #29

Open
edmundatgmaven opened this issue Oct 28, 2020 · 1 comment

Comments

@edmundatgmaven
Copy link

Read timeout error for a large sheet (3k records, 120 columns). Setting :read-timeout and :connection-timeout in google-ctx not changing anything. Values set to 560000 but it still times-out after about 15s.

  1. Unhandled java.net.SocketTimeoutException
    Read timed out

     NioSocketImpl.java:  283  sun.nio.ch.NioSocketImpl/timedRead
     NioSocketImpl.java:  309  sun.nio.ch.NioSocketImpl/implRead
     NioSocketImpl.java:  350  sun.nio.ch.NioSocketImpl/read
     NioSocketImpl.java:  803  sun.nio.ch.NioSocketImpl$1/read
            Socket.java:  982  java.net.Socket$SocketInputStream/read
    

SSLSocketInputRecord.java: 469 sun.security.ssl.SSLSocketInputRecord/read
SSLSocketInputRecord.java: 463 sun.security.ssl.SSLSocketInputRecord/readHeader
SSLSocketInputRecord.java: 70 sun.security.ssl.SSLSocketInputRecord/bytesInCompletePacket
SSLSocketImpl.java: 1421 sun.security.ssl.SSLSocketImpl/readApplicationRecord
SSLSocketImpl.java: 1033 sun.security.ssl.SSLSocketImpl$AppInputStream/read
BufferedInputStream.java: 244 java.io.BufferedInputStream/fill
BufferedInputStream.java: 284 java.io.BufferedInputStream/read1
BufferedInputStream.java: 343 java.io.BufferedInputStream/read
HttpClient.java: 754 sun.net.www.http.HttpClient/parseHTTPHeader
HttpClient.java: 689 sun.net.www.http.HttpClient/parseHTTP
HttpURLConnection.java: 1623 sun.net.www.protocol.http.HttpURLConnection/getInputStream0
HttpURLConnection.java: 1528 sun.net.www.protocol.http.HttpURLConnection/getInputStream
HttpURLConnection.java: 527 java.net.HttpURLConnection/getResponseCode
HttpsURLConnectionImpl.java: 308 sun.net.www.protocol.https.HttpsURLConnectionImpl/getResponseCode
NetHttpResponse.java: 37 com.google.api.client.http.javanet.NetHttpResponse/
NetHttpRequest.java: 94 com.google.api.client.http.javanet.NetHttpRequest/execute
HttpRequest.java: 981 com.google.api.client.http.HttpRequest/execute
AbstractGoogleClientRequest.java: 419 com.google.api.client.googleapis.services.AbstractGoogleClientRequest/executeUnparsed
AbstractGoogleClientRequest.java: 352 com.google.api.client.googleapis.services.AbstractGoogleClientRequest/executeUnparsed
AbstractGoogleClientRequest.java: 469 com.google.api.client.googleapis.services.AbstractGoogleClientRequest/execute
google_sheets_v4.clj: 391 google-apps-clj.google-sheets-v4/get-cells
google_sheets_v4.clj: 375 google-apps-clj.google-sheets-v4/get-cells
google_sheets_v4.clj: 410 google-apps-clj.google-sheets-v4/get-cell-values
google_sheets_v4.clj: 404 google-apps-clj.google-sheets-v4/get-cell-values

@estikado
Copy link

estikado commented Mar 1, 2021

Having same issue.
I believe it is related with this dissoc:

(dissoc google-ctx :read-timeout :open-timeout)

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