不支持的Firebase Functions服务?

时间:2019-07-17 16:29:48

标签: firebase google-cloud-functions firebase-cli

我正在尝试基于身份验证触发器部署最小的Firebase功能。之前,我已经成功使用https和数据库触发器,但是在部署身份验证触发器(docsreference)时遇到错误。

plot4.scatter(np.concatenate((x1,x2,x3)), 
              np.concatenate((y1,y2,y3)), 
              color='black', s=10)

我收到以下错误:

  

忽略触发器“ onCreateUser”,因为尚不支持“ firebaseauth.googleapis.com”服务。

我尝试将引擎节点版本从import * as functions from 'firebase-functions'; import * as admin from 'firebase-admin'; admin.initializeApp(); exports.onCreateUser = functions .region('europe-west1') .auth.user() .onCreate((user: admin.auth.UserRecord, context: functions.EventContext) => { console.log(`Triggered On Create User: ${user.email}, ${user.uid}.`); }); 更改为10或将区域更改为8europe-west2,但是配置上的任何变化都会引发此错误

我参考的文档没有提及对这些触发器的有限支持。是否有任何页面概述不支持的服务及其限制?

1 个答案:

答案 0 :(得分:1)

我似乎混淆了在这里运行servedeploy的意图。正如一个反应迅速的支持团队告诉我的那样,serve脚本提升了emulator的性能,目前仅限于以下范围:

  • 功能
  • Firestore
  • 实时数据库
  • 托管
  

但是,在开发阶段,您可以使用交互式shell:

     

$ firebase函数:shell

     

✔功能:仿真器从http://localhost:5001

启动      

i个函数:加载的函数:onCreateUser

     

firebase> onCreateUser({“ uid”:“ 99999”,“ email”:“ test@testing.com”})

     

“成功调用函数。”

     

>在创建用户时触发:test@testing.com,99999。

     

>函数返回未定义,预期的承诺或值