from google.appengine.api import urlfetch
totango_url = "https://sdr.totango.com/pixel.png"
totango_url2 = "https://app.totango.com/images/accounts-users.png"
result = urlfetch.fetch(totango_url, validate_certificate=None)
print result.status_code
在生产中500返回未捕获的异常,请求totango_url
日志指示(无ERROR_DETAIL):GAE网址抓取在生产
DownloadError: Unable to fetch URL: https://sdr.totango.com/pixel.gif
我跑此卷曲命令。从本地安装正常工作,同时为HTTPS totango网址
curl -v "https://sdr.totango.com/pixel.gif"
curl -v "https://app.totango.com/images/accounts-users.png"
SSL证书是有效的,两者相同的URL。
在这两个URL上使用urlfetch.fetch也会从我的(本地)数据存储控制台返回200。
然而,urlfetch.fetch调用https://sdr.totango.com/pixel.png
失败,上述错误
此外,我跑在谷歌云操场相同的代码调整示例应用程序引擎应用程序和似乎得到为totango_url2
200响应而它为totango_url
返回500。我认为两者都有相同的ssl证书。
是否有一些ip白名单/防火墙问题,我需要照顾的生产中的应用程序引擎?
感谢您的意见。我是否应该要求远程服务检查生产应用程序引擎IP的白名单,如dig -t TXT _netblocks.google.com @ ns1.google.com' – user2900910
给出的,我首先询问他们是否有该范围内的任何内容列入黑名单,或者他们是否可以解释为什么一次获得200人,另一人获得500人。 –