(possibly related to issue reported in:
Using HDInsight .NET client >= 18.104.22.168 in a web application (ASP.NET MVC 5) causes operations on the HDInsightClient object to never return. eg:
var client = HDInsightClient.Connect(new HDInsightAccessTokenCredential(Guid.Parse("eb1a85f8-09c6-4c54-ba20-5a6f264744c8"), "eyJ0eXAiOi..."));
// Next call (or any call on the client object) never returns
var locations = client.ListAvailableLocations();
The issue is reproducible using library version >= 22.214.171.124 and consistently does NOT appear in versions prior to that. I have also confirmed that the authentication method (certificate or bearer token) does not affect this behavior. The call consistently
works correctly in any environment other than a web application.
From a Fiddler trace, I can see that the request is issued to
. The host;
asks for a client certificate during the TLS negotiation, but even if no certificate is used a valid response is received. The response does not seem
to be processed by the HDInsightClient library and therefore the call never returns.