0
我有谷歌Apps脚本的Web应用程序:如何在Google Apps脚本Web应用程序中接收Github WebHook?
function doPost(request){
request.postData;
// operations based on received JSON
}
和我在Github上建立网络挂接。
为什么我的GAS应用程序拒绝来自GitHub WebHook的HTTP请求?每次我检查网络挂接登录我看到错误消息:
Error 401 "Sorry, unable to open the file at this time.".
好的,但为什么WebHook请求失败,401错误? – BPS
既然你没有在GitHub上显示你的信息,我不知道你的详细情况。但是,如果''doPost()''从GitHub接收到数据,则状态码将变为302或30#。状态码401可能是错误的URL。您是否在Google上部署了网络应用程序?你已经测试POST了吗? – Tanaike