none
why does ResourceSets.Resources.Count() == 0 sometimes? RRS feed

  • Question

  • I'm consistently getting a response where the Response.ResourceSets.Resources.Count() == 0, even though:

    1. I know that is not the case.

    2. If I make the same call again, the Count() != 0.

    For example, if I make this call...

    http://dev.virtualearth.net/REST/v1/Locations/53.5025288772719,-113.083453818771?o=xml&inclnb=1&key=[MYKEY]

    ...over and over, eventually it will result in Resources.Count() == 0. It could be the first time, or the 50th time, but eventually it will happen. 

    Any suggestions?

    Monday, December 1, 2014 9:41 PM

Answers

  • It sounds like your account is being rate limited. When a trial or basic account makes a lot of requests in a short period of time it will be rate limited. Rate limiting also occurs to these accounts when the servers are under a lot of load. This does not happen to Enterprise accounts. If you look at the header of all the empty responses you will see that there is a flag that indicates that it was rate limited. This is documented here: http://msdn.microsoft.com/en-us/library/ff701703.aspx 

    http://rbrundritt.wordpress.com

    Monday, December 1, 2014 10:54 PM

All replies

  • It sounds like your account is being rate limited. When a trial or basic account makes a lot of requests in a short period of time it will be rate limited. Rate limiting also occurs to these accounts when the servers are under a lot of load. This does not happen to Enterprise accounts. If you look at the header of all the empty responses you will see that there is a flag that indicates that it was rate limited. This is documented here: http://msdn.microsoft.com/en-us/library/ff701703.aspx 

    http://rbrundritt.wordpress.com

    Monday, December 1, 2014 10:54 PM
  • Thanks. I did just try this with an enterprise key and did not get an error. 
    Tuesday, December 2, 2014 12:18 AM