Firebase功能“;外部网络无法访问,配额严重受限”;调用谷歌地图API时

Firebase功能“;外部网络无法访问,配额严重受限”;调用谷歌地图API时,firebase,google-cloud-functions,Firebase,Google Cloud Functions,我有一个Firebase函数向Google API发出请求https://maps.googleapis.com/maps/api/directions/jsonSpark计划中应该允许这样做,因为这是一个Google API 但在日志中,它说: Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account

我有一个Firebase函数向Google API发出请求
https://maps.googleapis.com/maps/api/directions/json
Spark计划中应该允许这样做,因为这是一个Google API

但在日志中,它说:

Billing account not configured. External network is not accessible and 
quotas are severely limited. Configure billing account to remove these 
restrictions
我觉得这很奇怪,因为Spark计划中有云功能的注释:

The Spark plan allows outbound network requests only to Google-owned 
services. Inbound invocation requests are allowed within the quota. 

这里的问题是:“这是一个常见的问题还是我在这里遗漏了什么?”

这里没有问题,而且听起来像是谷歌的支持问题。我投票结束这个离题问题。当您的项目在Spark/free计划中时,您的云功能代码不允许调用Google网络之外的服务。这就是信息想要表达的意思,尽管我必须承认措辞相当迟钝。该消息在日志中显示得过于频繁,因此对maps的调用是否失败更为重要。如果有,你能显示失败的代码吗?这样我们就可以检查您是否做错了。
axios.get('https://maps.googleapis.com/maps/api/directions/json“,{params:params})
这是我正在打的电话