间歇性403“此服务不适用于您的国家/地区”执行API错误 [英] Intermittent 403 "This service is not available from your country" Error for execution API

查看:299
本文介绍了间歇性403“此服务不适用于您的国家/地区”执行API错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


https://www.googleapis.com/discovery/v1/apis/script/v1/rest返回
此服务不适用于您的国家/地区>

https://www.googleapis.com/discovery/v1/apis/script/v1/rest returned "This service is not available from your country">

这是来自调用导致的google python oauth2client库的错误:

This is an error from the google python oauth2client library resulting from the call:

service = discovery.build('script', 'v1', http=http)

我一直在这台服务器上处理这段代码5天。
直到今天,一切都运转良好。

Ive been working on this code on this server for 5 days. Until today, everything worked perfectly.

推荐答案

最可能的原因是你连接到谷歌的api系统与http请求不是https。检查你的loGs。在Python2.7.9之前,这很容易做到。我不知道其他语言

The most likely reason for this is you are connecting to google's api system with an http request not https. check your loGs for such. Before Python2.7.9 this was quite easy to do. I dont know about other languages

使用http图层,google服务器将允许连接大约一周,然后关闭门。

Using an http layer the google servers will allow connections for about a week, and then they shut the door.

这篇关于间歇性403“此服务不适用于您的国家/地区”执行API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆