Cloud Functions for Firebase - getaddrinfo ENOTFOUND

前端 未结 4 1353

Trying to make a request to Paypal\'s API using PayPal-node-SDK

exports.requestPayment = functions.https.onRequest((req, res) => {
    return new Promise(         


        
相关标签:
4条回答
  • 2020-11-22 07:11

    You need to include service account to the admin initialization. this fixed the same issue for me

    0 讨论(0)
  • 2020-11-22 07:18

    You'll need to be on a paid plan to make external API requests.

    Firebase's Blaze plan (pay as you go) has a free allotment for Cloud Functions. https://firebase.google.com/pricing/

    0 讨论(0)
  • 2020-11-22 07:20

    in my situation I had to wait and let what ever lag was happening pass. Now it's fine again.

    0 讨论(0)
  • 2020-11-22 07:36

    Switch to the Firebase "Blaze" plan, which includes the free usage tier of the Spark plan before incurring any costs. Use the Blaze pricing calculator to see what you'd be charged for a given usage.

    The first 5GB of outbound (egress) networking is free, which is the same as what "native" Google Cloud Functions would give you.

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