-
Notifications
You must be signed in to change notification settings - Fork 49
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
Connection errors that happens intermittently #330
Comments
we are also facing the same problem in our solution when we use our application after 10 to 15 API calls getting the issue. |
We have seen a few reports of this in the last few weeks. The errors are indicating a network issue between the client and the server, What may be needed here is to create a Support ticket to engage Platform networking folks to help troubleshoot this problem specifically to the environments your connecting too. |
This how the errors look when I grab more of them. At #2 it looks like the first inner stack trace is similar to #3 second inner stack trace. But I don't really know what I'm looking for so I hope this is the information you wanted @MattB-msft #2 #3 |
Yes.. this is what I was expecting to see. This is your error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host That is the network layer terminating the connection, that can happen due to bad gateway's or firewalls, connection drops (mid-communication) We have discussed putting in retires for this type of error, but our telemetry tells us that when we see "An existing connection was forcibly closed by the remote host" it nearly aways a network element (firewall / gateway / proxy server ) that is failing. Retrying the operation internally masks the problem and shows up as performance issues. I would start by taking a look at where your service is and the path it takes to get to PowerPlatform. You can also aways open a support ticket with us to help troubleshoot the problem from the PowerPlatform side to your host (where possible). That said, this behavior has occurred in the past where our (PowerPlatform) perimeter security system would terminate connections due to out of date or what were seen as corrupted SSL certificates used on requests. But I, personally, have not seen that since we retired TLS 1.x in the network. My recommendation would be as follows: If that does not pan out, or lead to a reason, I would recommend opening a support ticket with Microsoft to so the PowerPlatform side can be investigated. |
@MattB-msft thank you, we'll start with your recommendations and if the issue still persists we'll open a support ticket with Microsoft and I'm guessing in our case it's the Dynamics365 team for us. |
Going to close this.. |
BTW, just want to mention that we're seeing error 2 and 3 from the OP. We were using .NET framework 4.6.2 along with Xrm Tooling and no errors, but when we deployed .NET 6 using DV Client (latest) we've started seeing these exceptions as well. Aside from this, I have Azure Functions (.NET 6, v4 runtime) and getting the SSL exception message intermittently. They were running just fine for the past few months but recently I've been seeing these errors now. IMO, I don't believe it is a network configuration, otherwise we would've seen the same errors with .NET framework 4.6.2 with the XRM tooling connector as well. I can't believe we're the only ones reporting or having these. @MattB-msft , happy to provide additional information, please let me know what you need? |
We are experience similar issue. We used SDK to connect to CRM on cloud. Per Microsoft recommendation, we replace ADAL auth with Microsoft.PowerPlatform.Dataverse.Client. .NET application is running on framework 4.7.2. We did not get any error when doing unit testing in our test environment. However, after we deployed the application to our production with higher volume of transactions (we load more than 1/2 million of records daily), then we got the following error Exception Message: Inner Message: After rolling back the changes to use Microsoft.Xrm.Tooling.Connector with ADAL, the error is gone. Any help or comment for trouble shooting is appreciated. |
BTW, just an update here. In me case, it actually did turn out to be a customer's fairly complex network configuration being the issue. Anyway, we were able to replicate and compare side by side and they know what to do or how to fix. @rsaclee , I'm not sure the latest issue you're having is related to the OP. @MattB-msft , thanks as always. It was indeed a network issue on the customer side. |
We are using the nuget package in a service that calls Dynamics a few times a minute.
And intermittently we get errors that we couldn't connect because a few different exceptions:
We also get
System.ServiceModel.CommunicationException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (domain.crm4.dynamics.com:443)
But not sure if that is connected to your nuget package.
This happens 2 or 3 times each day on different times, and then there can be a surge of up to 10 to 15 exceptions.
I'm sure there is a lot of information I have not included that you need, but just let me know what you need.
The text was updated successfully, but these errors were encountered: