cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Failed to execute HTTP request Reason: Connection reset, Resolution: Please check the Snap"

hemangjalali
New Contributor II

I am trying to pull data via snaplogic pipeline from graph API, but I get connection reset error on rest get snap. We even whitelisted the endpoint URL on the snaplogic side. Please help us understand if we need to do something else here to fix this?

P.S - Tried using postman to make the call and it works fine.

Error: 

Failed to execute HTTP request
Resolution:
Please check the Snap properties.
Reason:
Connection reset
Hide Details...
REST Get[592dae2559ee13133f007722_5b200777-9b09-4433-b2dd-c60f22bf4156 -- 4a78ba06-bf82-44d2-ad2d-b2a8cee90607]
com.snaplogic.snap.api.SnapDataException: Failed to execute HTTP request
at com.snaplogic.snap.api.rest.RestRequestExecutor.executeOnce(RestRequestExecutor.java:313)
at com.snaplogic.snap.api.rest.RestRequestExecutor.execute(RestRequestExecutor.java:190)
at com.snaplogic.snap.api.rest.RestRequestExecutor.execute(RestRequestExecutor.java:173)
at com.snaplogic.snaps.rest.Get.process(Get.java:124)
at com.snaplogic.snap.api.ExecutionUtil.process(ExecutionUtil.java:106)
at com.snaplogic.snap.api.ExecutionUtil.executeForDocument(ExecutionUtil.java:118)
at com.snaplogic.snap.api.ExecutionUtil.execute(ExecutionUtil.java:81)
at com.snaplogic.snap.api.SimpleSnap.execute(SimpleSnap.java:70)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.executeSnap(SnapRunnableImpl.java:812)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.execute(SnapRunnableImpl.java:586)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:877)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:436)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:120)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.snaplogic.api.ExecutionException: Failed to execute HTTP request
at com.snaplogic.snap.api.rest.RestRequestExecutor.request(RestRequestExecutor.java:471)
at com.snaplogic.snap.api.rest.RestRequestExecutor.executeOnce(RestRequestExecutor.java:263)
... 18 more
Caused by: javax.net.ssl.SSLException: Connection reset
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:570)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:554)
at com.snaplogic.snap.api.rest.RestHttpClient$2.connectSocket(RestHttpClient.java:346)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:415)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at com.snaplogic.util.ProxyHttpClient.execute(ProxyHttpClient.java:317)
at com.snaplogic.util.ProxyHttpClient.execute(ProxyHttpClient.java:323)
at com.snaplogic.snap.api.rest.RestHttpClient.executeUriRequest(RestHttpClient.java:584)
at com.snaplogic.snap.api.rest.RestHttpClient.executeRequest(RestHttpClient.java:502)
at com.snaplogic.snap.api.rest.RestRequestExecutor.request(RestRequestExecutor.java:468)
... 19 more
Suppressed: java.net.SocketException: Broken pipe (Write failed)
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.base/java.net.SocketOutputStream.write(Unknown Source)
at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(Unknown Source)
... 42 more
Caused by: java.net.SocketException: Connection reset
at java.base/java.net.SocketInputStream.read(Unknown Source)
at java.base/java.net.SocketInputStream.read(Unknown Source)
at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source)
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
... 39 more
Reason: Connection reset
Resolution: Please check the Snap properties.
Error Fingerprint[0] = efp:com.snaplogic.snap.api.rest.ahNOqutD
Error Fingerprint[1] = efp:com.snaplogic.snap.api.rest.kD6m-Ibj
Error Fingerprint[2] = efp:sun.security.ssl.Jtu6EbX8
Error Fingerprint[3] = efp:java.net.4L0YCOAE
REST Get[592dae2559ee13133f007722_5b200777-9b09-4433-b2dd-c60f22bf4156 -- 4a78ba06-bf82-44d2-ad2d-b2a8cee90607]
com.snaplogic.cc.snap.common.ThreadDetails: prio=4 Id=3846577 RUNNABLE
at java.base@11.0.11/java.net.PlainSocketImpl.socketClose0(Native Method)
at java.base@11.0.11/java.net.AbstractPlainSocketImpl.socketPreClose(Unknown Source)
at java.base@11.0.11/java.net.AbstractPlainSocketImpl.close(Unknown Source)
at java.base@11.0.11/java.net.SocksSocketImpl.close(Unknown Source)
at java.base@11.0.11/java.net.Socket.close(Unknown Source)
at java.base@11.0.11/sun.security.ssl.BaseSSLSocketImpl.close(Unknown Source)
at java.base@11.0.11/sun.security.ssl.SSLSocketImpl.closeSocket(Unknown Source)
at java.base@11.0.11/sun.security.ssl.SSLSocketImpl.close(Unknown Source)
...
at java.base@11.0.11/java.net.PlainSocketImpl.socketClose0(Native Method)
at java.base@11.0.11/java.net.AbstractPlainSocketImpl.socketPreClose(Unknown Source)
at java.base@11.0.11/java.net.AbstractPlainSocketImpl.close(Unknown Source)
at java.base@11.0.11/java.net.SocksSocketImpl.close(Unknown Source)
at java.base@11.0.11/java.net.Socket.close(Unknown Source)
at java.base@11.0.11/sun.security.ssl.BaseSSLSocketImpl.close(Unknown Source)
at java.base@11.0.11/sun.security.ssl.SSLSocketImpl.closeSocket(Unknown Source)
at java.base@11.0.11/sun.security.ssl.SSLSocketImpl.close(Unknown Source)
at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:254)
at org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.java:178)
at org.apache.http.impl.conn.HttpPoolEntry.close(HttpPoolEntry.java:92)
at org.apache.http.pool.AbstractConnPool.shutdown(AbstractConnPool.java:149)
at org.apache.http.impl.conn.PoolingClientConnectionManager.shutdown(PoolingClientConnectionManager.java:284)
at com.snaplogic.util.ProxyConnectionManager.shutdown(ProxyConnectionManager.java:113)
at org.apache.http.impl.client.AbstractHttpClient.close(AbstractHttpClient.java:965)
at com.snaplogic.snap.api.rest.RestHttpClient.close(RestHttpClient.java:410)
at com.snaplogic.snaps.rest.RestCommon.cleanup(RestCommon.java:741)
at com.snaplogic.cc.util.SnapUtil.cleanup(SnapUtil.java:248)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.execute(SnapRunnableImpl.java:599)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:877)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:436)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:120)
at java.base@11.0.11/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base@11.0.11/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base@11.0.11/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base@11.0.11/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base@11.0.11/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base@11.0.11/java.lang.Thread.run(Unknown Source)
Error Fingerprint[0] = efp:java.net.t7IRdbpv

1 REPLY 1

hemangjalali
New Contributor II

Attaching my rest get snap. Authorization value is Bearer <Token>

 

image.png