Avatar

API Authentication Error

0

Hello,

 

We are getting an error for specific GeoTab clients when trying to authenticate with their corresponding API credentials. We are using C#. The exact error message returned from GeoTab is:

 

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 23.251.151.228:443

There is already an existing ticket in the system but without resolution.

Vesko

Please sign in to leave a comment.

5 comments

0
Avatar

Hi Vesko,

Please update to the latest nuget package and see if that works. 1801 is rather old.

Rafael Nazareno 0 votes
0
Avatar

After we updated GeoTab Checkmate ObjectModel to the latest version 5.7.1901 and Geotab.Reflection to 5.7.1702 including all other associated controls we are still receiving the same exact error as before, though this time there is more information:

Rapid_Apps_Service.TaskGeoTabTripLogException: Error in GeoTab Trip Log Task ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 23.251.151.228:443
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

Please note that this error is happening to only 1 customer now: Central CP, whose GeoTab db name is: ccp

All other customers of ours are properly working

Vesko 0 votes