Http request log on post function script runner ( in transition)

Nouf.Alshabanat January 3, 2021

This transition create http request to external website and get response

 

 sometimes it works fine, but every ones in a while it's fail with this log and i don't know what is the fail cause from:

  • Logs

Time (on server): Thu Dec 31 2020 10:41:14 GMT+0300 (Arabian Standard Time)

The following log information was produced by this execution. Use statements like:log.info("...") to record logging information.

2020-12-31 07:41:14,871 ERROR [workflow.AbstractScriptWorkflowFunction]: Workflow script has failed on issue 'the issue'for user 'the user'. View here: https://
java.net.SocketTimeoutException: timeout
	at okio.Okio$4.newTimeoutException(Okio.java:230)
	at okio.AsyncTimeout.exit(AsyncTimeout.java:285)
	at okio.AsyncTimeout$2.read(AsyncTimeout.java:241)
	at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345)
	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217)
	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211)
	at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:187)
	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:125)
	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 okhttp3.Call$execute.call(Unknown Source)
	at Script12.run(Script12.groovy:43)
Caused by: javax.net.ssl.SSLException: Socket closed
	at okio.Okio$2.read(Okio.java:139)
	at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
	... 21 more
Caused by: java.net.SocketException: Socket closed
	... 23 more  

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2021

The error in this log is a simple network error - the Jira script runs, sends something to a remote service and waits for a response, then completes when it gets one.  In this case, there is no response coming back within the time the OS allows for connections, so the script fails.

You'll need to look at the remote system or network connection to find out why it's not responding in time.

Nouf.Alshabanat January 3, 2021

Thank you for your quick reply it's very helpful.

Ivan Vitković August 2, 2023

Hi!

Did you manage to fix this problem? I have the same problem so any information would be useful.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 15, 2023

It's the same answer - they will have fixed the unresponsive application at the other end.

Suggest an answer

Log in or Sign up to answer