Intermittent Connection Reset issue
Since the last couple of weeks, me and my team have been facing intermittent connection reset issue while connecting to Salesforce (deployment, retrieval, test execution etc). This is affecting our sandboxes as well as Trailhead playground orgs. I’m using latest release version of WebStorm and IC2.
Please find the logs and screenshot of the issue.
Comments (7)
-
repo owner -
reporter Hello Scott, our team works remotely and is spread across multiple cities in India and South Africa using different ISPs. We connect to Salesforce directly without any VPN or proxy. As the issue is affecting all of us, it does not appear to be related to the network on our end. Not sure if it is on Salesforce’s side.
-
repo owner Hi. The type of error that I'm seeing in the provided log is pretty much always due to something in either the local network closing the socket before it reaches Salesforce or something on the Salesforce side closing the socket. 99% of the time I've found that it's something in the local network, though, even when it's not obvious that there's a network intermediary. Here's the error:
javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:183) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145) at com.sun.proxy.$Proxy204.describeMetadata(Unknown Source) at com.illuminatedcloud.intellij.configCache.DescribeMetadataResultCache.lambda$computeValue$0(SourceFile:81) at com.illuminatedcloud.client.ForceComApiClient.runWithClient(SourceFile:315) at com.illuminatedcloud.client.ForceComApiClient.runWithClient(SourceFile:410) ... Caused by: java.net.SocketException: SocketException invoking https://liberty-group--t1devy.my.salesforce.com/services/Soap/m/54.0/00D25000000HpIREA0: Connection reset at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1400) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1384) ... 38 more Caused by: java.net.SocketException: Connection reset at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478) at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472) at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1501) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1411) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:451) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:422) ...
I don't know if it's possible, but perhaps you could confirm that by moving one of the machines having this problem to another work such as a mobile hotspot from a phone or a coffee shop just to see whether the same issue occurs. If it does, it's most likely happening in Salesforce; if it doesn't, you should reach out to your IT group to see if they can see these connection requests and what might be terminating them.
-
reporter Hello Scott, I am not able to reproduce the problem using my mobile hotspot. I’ll see if someone else from my team is able to do so.
-
repo owner Okay, that's good to hear and consistent with what I'd expect. If you can only reproduce this errant behavior on your corporate network(s), you'll need to speak with your IT team to see what configuration is required to support these connections.
-
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
Hi. Thank for providing the logs. The connection is being reset by either the Salesforce servers or, more likely, so intermediate proxy or firewall. This is almost always indicative of a restrictive network for which the IDE must be configured. You can find more information in the user guide here:
https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/wiki/User_Guide/Configuring_the_IDE_to_Use_a_Proxy_Server
Please let me know if that doesn't help.