首页 > 解决方案 > Google Apps 脚本中 UrlFetchApp.fetch 的地址不可用

问题描述

首先,非常感谢 Google 提供了很棒的 Google Apps 脚本!

我目前正在设计一个带有名为 CryptoCompare 的 API 服务的 Google 表格广告。到目前为止,它的效果一直很好。但突然我收到错误“地址不可用”。我尝试了不同的端点、新的 API 密钥甚至新的 Google 表格。但没有任何效果。

这个简单的调用失败:

var response = UrlFetchApp.fetch('https://min-api.cryptocompare.com/data/blockchain/list');

顺便说一句:其他 API(如 Coinbase、Bittrex 等)运行良好!

需要帮助,马蒂亚斯。

标签: apigoogle-apps-scriptgoogle-sheets

解决方案


解决了

问题是运营商阻止了 Google IP 地址!无法直接联系运营商或切换到其他服务 - 没有解决方法。

顺便说一句:感谢 CryptoCompare 的大力支持!


推荐阅读