我创建了一个使用“Google API客户端库”运行的网络应用程序。
过去两年,这对我来说非常合适。 但从昨天开始,我面临着一个巨大的问题。
如果我想访问分析API,系统会返回:
Google_Service_Exception Object
(
[errors:protected] => Array
(
[0] => Array
(
[domain] => global
[reason] => countryBlocked
[message] => This service is not available from your region
)
)
[retryMap:Google_Service_Exception:private] => Array
(
[500] => -1
[503] => -1
[rateLimitExceeded] => -1
[userRateLimitExceeded] => -1
)
[message:protected] => Error calling GET https://www.googleapis.com/analytics/v3/management/accounts/~all/webproperties/~all/profiles: (403) This service is not available from your region
)
我检查了日志并在过去30天内提出了50个请求,因此垃圾邮件无法成为拦截的原因。
当我从另一台服务器运行它时运行得很好。
任何人都可以解释为什么会发生这种情况以及如何绕过它吗?