Intermittent 403 “This service is not available from your country” Error for execution API

冷暖自知 提交于 2020-01-17 05:03:26

问题


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

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

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

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


回答1:


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

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



来源:https://stackoverflow.com/questions/36923117/intermittent-403-this-service-is-not-available-from-your-country-error-for-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!