I'm trying to fetch URL using UrlFetchApp.fetch in google-apps-script.
This is my code:
{% extends 'base.html.twig' %}
{% block body %}
{{ resource('script', 'google.com') }}
{% endblock %}
I have set a break point on every line of the code and started with debugger. But when I get to the second line, there is nothing in "response" var and the "continue" button just leaves me on this line like it have been loop line.
If I change the URL to "https://www.google.com", everything works ok.
If I change the URL to "https://www.google.com/not-a-real-page", I got an expected exception.
But with the needed URL there is no exception at all.
What am I doing wrong?
答案 0 :(得分:0)
如果网址阻止来自您所在国家/地区的IP,则可能会考虑网址获取的来源。它很可能源自加利福尼亚州帕洛阿尔托的谷歌服务器。我也无法从韩国的网络浏览器访问该网站。我会说这个网站阻止了来自美国的电话。