I have a VB Application that interfaces to the FreshDesk API. This has been working just great until this week when it is failing and I wondered if this is an issue with the recent TLS upgrade.
My code for reading a list of Clients is as follows:
Public uRequestUri As String = "https://xxx.freshdesk.com"
Public sAPIKey As String = ""Our API Key]"
Dim uFDConnection = New RestClient(uRequestUri)
uFDConnection.Authenticator = New HttpBasicAuthenticator(sAPIKey, "")
uFDConnection.AddDefaultHeader("Accept", "application/json")
' Get List of Companies
Dim uRequest = New RestRequest("/api/v2/companies?page=1", Method.GET)
Dim uResponse As IRestResponse = uFDConnection.Execute(uRequest)
uCompanies = JsonConvert.DeserializeObject(Of List(Of FreshDesk_Company))(uResponse.Content)
uResponse = Nothing
uRequest = Nothing
The return value for uResponse is "The underlying connection was closed: An unexpected error occurred on a send."
As I have not changed anything at my end I assume this is as a result of the recent changes at FreshDesk. Any Ideas ?