Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,385
Community Members
 
Community Events
168
Community Groups

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

Edited

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

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.

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events