UrlFetchApp unable to access localhost resource

前端 未结 2 640
长发绾君心
长发绾君心 2020-12-12 01:36

This works fine:

var resp = UrlFetchApp.fetch(\"someremotehost/SomeFile.csv\");
resp.getResponseCode();  //returns 200
resp.getContentText();   //returns the         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 01:51

    Use Proxy. I had the same issue, where my app was on AWS ec2.

    For that, I used nginx as proxy server and it worked.

提交回复
热议问题