Random socket timeouts

Hi everyone.
I’m here to ask for feedback from other people. We are getting a lot of random socket timeouts. Is this also happening to others?
Since this morning (CET) our application is getting several socket timeout exceptions and we can’t figure out what’s the real problem.
We are using Infura and Web3J for interacting with Ethreum blockachain.
I’m not sure if this can be helpful, but this is the stack trace:

java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:232)
at okio.AsyncTimeout.exit(AsyncTimeout.java:285)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:241)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:355)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:227)
at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215)
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
at okhttp3.RealCall.execute(RealCall.java:77)
at org.web3j.protocol.http.HttpService.performIO(HttpService.java:63)
at org.web3j.protocol.Service.send(Service.java:34)
at org.web3j.protocol.core.Request.send(Request.java:71)
at org.web3j.tx.RawTransactionManager.signAndSend(RawTransactionManager.java:119)
at org.web3j.tx.RawTransactionManager.sendTransaction(RawTransactionManager.java:104)
at org.web3j.tx.TransactionManager.executeTransaction(TransactionManager.java:49)
at org.web3j.tx.ManagedTransaction.send(ManagedTransaction.java:87)
at org.web3j.tx.Contract.executeTransaction(Contract.java:284)
at org.web3j.tx.Contract.executeTransaction(Contract.java:268)
at org.web3j.tx.Contract.executeTransaction(Contract.java:262)
at org.web3j.tx.Contract.lambda$executeRemoteCallTransaction$3(Contract.java:314)
at org.web3j.protocol.core.RemoteCall.send(RemoteCall.java:30)

I’ve already checked if there are conncetivity issues that can prevent the application to works properly but there’s no real evidence of this.
For the sake of clarity, the API key used it’s valid and was perfectly working till about 10 AM (I checked in the dashboard).

Thanks.

Thanks for posting, sorry to hear you’re having issues, can you also provide the code that is generating the websocket subscription and interacting with the websocket connection?