Question

Bing map API call exception?


Badge

We are getting exception as mentioned in attached log file while FSM tries to call Bing API. Can you please check the exception and suggest the solution.

 

Exception messages –

 

Message: Exception details in BING REST call: requestUrl=http://dev.virtualearth.net/REST/v1/Locations?addressLine=GIPSON%20ST&locality=DIAMOND%20CREEK&postalCode=3089&countryRegion=AU&key=Arf9rKlhppvsv6lk7V13KcT9WzJXr1ts0HNgikfaOrr5MayEw3xjvT8WKyftVj8k

exception=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: 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 52.231.167.203:80


3 replies

Userlevel 6
Badge +23

Hi Soumitra,

I believe it’s because the FSM App Server isn’t able to connect to the BING Maps API due to Firewall blocking or any other policy in place.

Check with the customer if this is the case (or maybe if a Proxy is required to access external resources).

Best regards

Roman

Userlevel 7
Badge +21

Hi @soumitra ,

Agree with @roklde on this. You would need to make sure that *dev.virtualearth.net* is accessible . You can use a dummy request to http://dev.virtualearth.net/REST/v1/Locations?countryRegion={countryRegion}&adminDistrict={adminDistrict}&locality={locality}&postalCode={postalCode}&addressLine={addressLine}&userLocation={userLocation}&userIp={userIp}&usermapView={usermapView}&includeNeighborhood={includeNeighborhood}&maxResults={maxResults}&key={BingMapsKey} using a browser from the FSM server to make sure that the endpoint can be reached. 

Cheers

Userlevel 2
Badge +7

Hi I have got a similar error and timeout during the perform refresh cache. It seems there during the refresh a public ip is trying to be reached. Can you assist on pinpoint the location of such a url? 

 

Timestamp: 2022-06-22T12:56:21.8267337+00:00
Message: Incoming XML request:
<perform_full_refresh_cache><parameters /><authentication><session_info><tenant_name></tenant_name><workstation></workstation></session_info></authentication></perform_full_refresh_cache>
Outgoing XML reponse:
<metrix_response><result type="Exception"><error><system_error><severity>ERROR</severity><message>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 20.60.130.101:443</message></system_error></error></result></metrix_response>
Time Elapsed: 00:04:46.9251241

Reply