开发者

Salesforce: Google maps query status 620 G_GEO_TOO_MANY_QUERIES

开发者 https://www.devze.com 2023-03-30 11:17 出处:网络
In Salesforce I have created a future method that makes a Google Maps geocode callout.I know there is a limit of 2,500 requests per day but 开发者_JAVA百科our instance has made no more than 100 reques

In Salesforce I have created a future method that makes a Google Maps geocode callout. I know there is a limit of 2,500 requests per day but 开发者_JAVA百科our instance has made no more than 100 requests today. Maybe the same number of requests yesterday. Yet the response code is 620 G_GEO_TOO_MANY_QUERIES.

Could it be that Google is seeing the IP address of the instance of Salesforce and aggregating all of these requests as coming from one location. So other companies that are sharing the address are causing my instance to hit this limit? If not can anyone suggest another cause?


This discussion suggests that it is the shared origin from salesforce that is messing it up. This only makes sense though if you are doing the geocode lookup from the server and not from a client. If you would do it fromt the client it would use the ip from the client and you are dealing with the local clients lookup limits (see below).

If you are doing it on the server you might also have to check if you are actually doing something that is legal and not breaking the ToS from google. In this discussion you will get some background on that and also a solution if you need to fix this on the server (buy a licence)

To be complete the G_GEO_TOO_MANY_QUERIES can mean one of 2 things:

  • You exceeded the daily limit (too many in a day)
  • You exceeded the speed limit (too many request is too short period)

Google has not specified an exact limit as far as I know but they don't seem to enjoy automated lookups. If you look at various libraries and plugins you'll see that all of them force a delay between each request and often they add a little randomness to the delay. You could experiment with this if it makes any difference


Did this end up working for you? we're hitting a server-side 620 and all configuration looks a.o.k... we have a premier license and upgraded to 250k requests per day.

0

精彩评论

暂无评论...
验证码 换一张
取 消