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

Socket Timeout Exception after Serenity upgrade to 4.1.14 #181

Open
asif-choudhari opened this issue Jun 26, 2024 · 1 comment
Open

Socket Timeout Exception after Serenity upgrade to 4.1.14 #181

asif-choudhari opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels

Comments

@asif-choudhari
Copy link

Initially on Serenity 2.x the integration was working fine, and test were reported.
After Serenity upgrade to 4.1.14, having issue.
Add the logs for reference
10:27:25 [rp-io-2] ERROR com.epam.reportportal.service.Launch - [28] ReportPortal execution error 10:27:25 10:27:25 java.net.SocketTimeoutException: timeout 10:27:25 10:27:25 10:27:25 at okio.Okio$4.newTimeoutException(Okio.java:232) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout.exit(AsyncTimeout.java:286) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) 10:27:25 10:27:25 10:27:25 at okio.RealBufferedSource.indexOf(RealBufferedSource.java:358) 10:27:25 10:27:25 10:27:25 at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.java:242) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.java:213) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.java:115) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at com.epam.reportportal.service.PathParamInterceptor.intercept(PathParamInterceptor.java:55) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at com.epam.reportportal.service.BearerAuthInterceptor.intercept(BearerAuthInterceptor.java:39) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229) 10:27:25 10:27:25 10:27:25 at okhttp3.RealCall.execute(RealCall.java:81) 10:27:25 10:27:25 10:27:25 at retrofit2.OkHttpCall.execute(OkHttpCall.java:204) 10:27:25 10:27:25 10:27:25 at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:46) 10:27:25 10:27:25 10:27:25 at io.reactivex.Observable.subscribe(Observable.java:12267) 10:27:25 10:27:25 10:27:25 at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) 10:27:25 10:27:25 10:27:25 at io.reactivex.Observable.subscribe(Observable.java:12267) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 10:27:25 10:27:25 10:27:25 at java.base/java.lang.Thread.run(Thread.java:829) 10:27:25 10:27:25 10:27:25 Caused by: java.net.SocketException: Socket closed 10:27:25 10:27:25 10:27:25 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:183) 10:27:25 10:27:25 10:27:25 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) 10:27:25 10:27:25 10:27:25 at okio.Okio$2.read(Okio.java:140) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) 10:27:25 10:27:25 10:27:25 ... 38 more 10:27:25 10:27:25 10:27:25 [rp-io-2] ERROR com.epam.reportportal.service.Launch - [28] ReportPortal execution error 10:27:25 10:27:25 java.net.SocketTimeoutException: timeout 10:27:25 10:27:25 10:27:25 at okio.Okio$4.newTimeoutException(Okio.java:232) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout.exit(AsyncTimeout.java:286) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) 10:27:25 10:27:25 10:27:25 at okio.RealBufferedSource.indexOf(RealBufferedSource.java:358) 10:27:25 10:27:25 10:27:25 at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.java:242) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.java:213) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.java:115) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at com.epam.reportportal.service.PathParamInterceptor.intercept(PathParamInterceptor.java:55) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at com.epam.reportportal.service.BearerAuthInterceptor.intercept(BearerAuthInterceptor.java:39) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 10:27:25 10:27:25 10:27:25 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117) 10:27:25 10:27:25 10:27:25 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229) 10:27:25 10:27:25 10:27:25 at okhttp3.RealCall.execute(RealCall.java:81) 10:27:25 10:27:25 10:27:25 at retrofit2.OkHttpCall.execute(OkHttpCall.java:204) 10:27:25 10:27:25 10:27:25 at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:46) 10:27:25 10:27:25 10:27:25 at io.reactivex.Observable.subscribe(Observable.java:12267) 10:27:25 10:27:25 10:27:25 at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) 10:27:25 10:27:25 10:27:25 at io.reactivex.Observable.subscribe(Observable.java:12267) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38) 10:27:25 10:27:25 10:27:25 at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 10:27:25 10:27:25 10:27:25 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 10:27:25 10:27:25 10:27:25 at java.base/java.lang.Thread.run(Thread.java:829) 10:27:25 10:27:25 10:27:25 Caused by: java.net.SocketException: Socket closed 10:27:25 10:27:25 10:27:25 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:183) 10:27:25 10:27:25 10:27:25 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) 10:27:25 10:27:25 10:27:25 at okio.Okio$2.read(Okio.java:140) 10:27:25 10:27:25 10:27:25 at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) 10:27:25 10:27:25 10:27:25 ... 38 more

@grey-rain
Copy link
Collaborator

@asif-choudhari as of now, the latest version integration has been tested with is 4.0.21.
your issue might be resolved by using this or lower version.
support of higher versions (4.2.0 as of today) is planned, but some critical bugs from the backlog should be addressed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants