Cloud Functions for Firebase - Getting Network error even though I'm making outbound http request for firebase-admin functionality

后端 未结 2 756
生来不讨喜
生来不讨喜 2021-01-18 16:50

I have a functions file where all I\'m currently trying to do is access the Firebase auth() functionality to check if a user exists, based on email, and then get their uid.<

相关标签:
2条回答
  • 2021-01-18 17:15

    That warning message appears for all functions when executing on the Spark plan. It's just a warning - you can ignore it if you're not doing any outbound networking on your own.

    We're looking into getting that message changed or removed so that it's less confusing.

    The admin SDK should work fine. However, your function doesn't return a response properly, so it won't appear to do anything. HTTP triggers (please read those docs) must send a response to the client to terminate normally. They don't return promises like the other types of functions.

    0 讨论(0)
  • 2021-01-18 17:21

    to be able to make external requests in firebase cloud functions, you have to choose a plan first. Flame or Blaze plans in console.firebase.google.com

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