firebase functions and external API

前端 未结 1 1185
离开以前
离开以前 2021-01-27 03:17
const functions = require(\'firebase-functions\');
exports.apiResponse = functions.https.onRequest((request, response) => {
const url = \"https://test-proj-heroku.her         


        
1条回答
  •  抹茶落季
    2021-01-27 04:11

    You are trying to make a request to your Heroku server (a non-Google product) and it appears that you are on the free tier of Firebase. As the pricing page indicates, under the Cloud Functions portion section, free-tiers are only permitted to make Outbound Networking actions (such as the call to your Heroku server) to other Google services (such as Gmail, Google Drive, etc...)

    If you want to make requests to your Heroku server, you'll need to upgrade to a paid Firebase tier.

    0 讨论(0)
提交回复
热议问题