2013-10-02 32 views

回答

6

有沒有好辦法做到這一點。我們沒有辦法來指定在UrlFetchApp HTTP調用PARAMS超時 - https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#fetch(String,Object)

你應該和你的使用情況的詳細記錄在問題追蹤器的增強請求 - https://code.google.com/p/google-apps-script-issues/issues/list

+4

這在應用程序腳本問題跟蹤有人提出在2014年4月,但仍然沒有得到解決:https://code.google.com/p/google-apps-script-issues/issues/detail ?id = 3908 – kiwidrew

-2

我有同樣的問題,該解決方案使用muteHttpExceptions。

var opt ={ 
    "validateHttpsCertificates" : false, 
    "muteHttpExceptions" : true 
    }; 
UrlFetchApp.fetch(url, opt); 
+0

在超時過期後,如何設置'muteHttpExceptions'幫助取消'fetch()'操作? – kiwidrew

相關問題