腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
如何
使用
firebase
仿真器
pubsub
在
本地测试定时
函数
?
typescript
、
firebase
、
google-cloud-functions
、
localhost
、
google-cloud-scheduler
我正在为一个项目
使用
firebase
,并且正在
使用
下面的代码创建一个调度
函数
。我想每一分钟都记录一条信息。am running")}) 我有
在
http
函数
下工作的代码的主要逻辑,并且希望
在
部署到生产之前看看这在本地是否有效。通过查看
firebase
文档,我下载了所有的
firebase
模拟器
,并
使用
"
firebase
模拟器</e
浏览 8
提问于2020-04-16
得票数 36
回答已采纳
3
回答
如何
使用
pubsub
仿真器本地调用
firebase
调度
函数
javascript
、
firebase
、
google-cloud-functions
、
google-cloud-pubsub
我正在处理云功能,特别是调度
函数
。我需要每5分钟周期性地触发一个
函数
,但只需要测试一步。我需要在
pubsub
模拟器
上运行它,而不是部署它。我试过
使用
防火墙外壳,但它只触发了一次。exports.scheduledFunctionPlainEnglish =functions.
pubsub
.schedule('every 2 minutes') .onRun((context)
浏览 0
提问于2020-07-06
得票数 8
回答已采纳
1
回答
Firebase
函数
不会看到
pubsub
仿真器
在
本地运行
firebase
、
google-cloud-pubsub
、
google-cloud-pubsub-emulator
我试着
在
本地运行
firebase
函数
。┌──────────┬────────────────┐"
pubsub
": { &quo
浏览 3
提问于2021-03-23
得票数 2
回答已采纳
2
回答
Google
函数
Cron作业不工作
firebase
、
google-cloud-functions
、
google-cloud-pubsub
、
firebase-tools
我试图
在
Firebase
函数
中
设置一个。作为一个简单的测试,我尝试重新创建文档页面上显示的示例: .schedule('every 5 minutes') console.log('This w
浏览 10
提问于2019-12-15
得票数 12
回答已采纳
1
回答
Firebase
函数
没有运行
firebase
、
google-cloud-functions
、
google-cloud-pubsub
嗨,我有
firebase
云
函数
,当我
在
本地运行
firebase
模拟器
时,它们没有
在
emulator.below
中
显示是我的
函数
代码。const functions = require("
firebase
-functions");const DomParser.region("europ
浏览 6
提问于2022-06-16
得票数 1
回答已采纳
1
回答
我可以
使用
带GCP云
函数
的
Firebase
函数
模拟器
吗?
node.js
、
firebase
、
google-cloud-platform
、
google-cloud-functions
我有一个GCP项目,它
使用
由Pub/Sub主题触发的node.js javascript Google
函数
。
在
根据建立本地测试时,似乎相当复杂。
使用
Firebase
PubSub
模拟器
和
Firebase
函数
模拟器
似乎要容易得多。我可以
在
GCP云
函数
中
使用
Firebase
函数
模拟器
吗?
浏览 10
提问于2022-06-23
得票数 1
2
回答
nodejs单元测试
PubSub
.publish未发送数据
node.js
、
typescript
、
unit-testing
、
google-cloud-pubsub
我
在
以下环境中进行单元测试时遇到了问题: "
pubsub
-js": "^1.9.2","@types/mocha": "^8.2.0","
firebase
-functions-test": "^0.2.3", "mocha&
浏览 56
提问于2021-02-04
得票数 4
1
回答
Firebase
PubSub
模拟器
未接收消息
node.js
、
google-cloud-functions
、
google-cloud-pubsub
、
firebase-tools
我正在尝试让
firebase
模拟器
使用
pubsub
发布来触发云
函数
。基本设置
在
云
函数
之外工作。尝试连接云
函数
时,不会出现任何消息。 我有种感觉,我做了一些根本错误的事情。发布代码: import {
PubSub
, Topic } from '@google-cloud/
pubsub
'; const [tas
浏览 9
提问于2021-01-30
得票数 1
回答已采纳
1
回答
本地仿真器分布式计数器扩展的实现
firebase
、
google-cloud-firestore
、
google-cloud-functions
、
firebase-tools
由于
firebase
扩展只是云
函数
,所以我考虑通过从扩展本身获取来实现
模拟器
中
的云
函数
。到目前为止,这对其他扩展很有效..。
在
实现时出现错误和故障function ignored because the unknown emulator does not exist or这个问题可以通过重写index.js
函数
的导出行来解决,但无论如何也不能提供扩展的预期功能: exports.worker =
浏览 6
提问于2022-01-24
得票数 3
回答已采纳
1
回答
在
火场找不到阴阳人
google-cloud-firestore
、
google-cloud-functions
、
google-cloud-pubsub
、
firebase-cli
我试图
在
firebase
模拟器
中
运行一个计划
函数
,但在运行
firebase
init时却找不到
pubsub
选项。见下面的图 我得到的选项是实时数据库,Firestore,
函数
,托管,存储,
模拟器
和远程Config,没有发布。
浏览 4
提问于2022-01-27
得票数 0
1
回答
Firebase
模拟器
:
在
函数
中
使用
PubSub
firebase
、
google-cloud-functions
、
google-cloud-pubsub
我正在尝试通过
模拟器
在
本地运行我的
Firebase
函数
。我已经构建了一个体系结构,其中的流程链由
PubSub
事件调用。我正在用--project {projectID}运行
模拟器
。我也像这样构造我的
PubSub
事件: const
pubsub
= new
PubSub
({ projectId: getRealtimeDatabase().app.options.projectId}) 我正在
使用
"@goog
浏览 27
提问于2020-07-10
得票数 0
1
回答
如何触发
Firebase
仿真程序的Pub/Sub主题
firebase
、
google-cloud-functions
、
google-cloud-scheduler
使用
Firebase
函数
,我有通过作业每小时运行一次的代码。看起来是这样的: functions.
pubsub
.topic("hourly-tick").onPublish((message, context) =.catch((error) => { });我需要能够
在
本地测试这
浏览 0
提问于2021-05-06
得票数 1
1
回答
Firebase
仿真器,其中包含一条关于
pubsub
主题not触发云
函数
的消息
firebase
、
google-cloud-functions
、
integration-testing
、
google-cloud-pubsub
、
firebase-tools
我正在做一个普通的express支持的API项目,该项目
使用
firebase
函数
来执行一些离线数据处理。
在
许多情况下,API会将事件引发到pub-sub,然后被云
函数
拾取。一个典型的例子是所有的聚合(日/月的总销售额)都被推送到云
函数
。 我正在考虑
使用
firebase
仿真器的集成测试套件,在那里我可以测试从API层到云
函数
被触发及其对数据存储的更新。我正在
使用
firebase
模拟器
浏览 8
提问于2021-04-19
得票数 0
2
回答
如何向我现有的项目中添加新的
firebase
模拟器
?
node.js
、
firebase
、
google-cloud-pubsub
因此,我已经
在
我的项目上运行了一些
firebase
模拟器
(auth,functions和firestore
模拟器
)。如果我运行
firebase
emulators:start,那么我的终端中就会有这2条消息 现在我想在我的当前项目中添加
pubsub
浏览 5
提问于2021-03-24
得票数 2
回答已采纳
1
回答
Firebase
数据库
模拟器
未启动
firebase
、
google-cloud-functions
、
firebase-cli
我正努力
在
本地测试我的防火墙功能。我的数据库仿真器似乎正常工作。✗
firebase
serve --only database✔ database: Emulatorstarted at http://localhost:9000i Starting emul
浏览 4
提问于2019-09-28
得票数 1
1
回答
尝试
在
shell上运行
Firebase
pubsub
计划云
函数
时出现ECONNREFUSED错误
firebase
、
google-cloud-functions
、
firebase-cli
我正尝试
在
Firebase
模拟器
上运行
pubsub
.schedule
函数
。我尝试按照以下链接
中
的说明进行操作。https://github.com/
firebase
/
firebase
-tools/issues/1748#issuecomment-609735979 https://
firebase
.google.com/docs/fun
浏览 16
提问于2020-04-30
得票数 1
2
回答
无法访问
firebase
仿真器UI
firebase
、
firebase-tools
我有以下
firebase
.json { "firestore": { },⚠ firestore: Did not
浏览 3
提问于2020-06-29
得票数 1
1
回答
Nx +
Firebase
:无法运行
模拟器
angular
、
firebase
、
angularfire2
、
nrwl-nx
我试图
在
Nx工作区
中
运行
Firebase
模拟器
。我
在
项目中添加了
firebase
:
firebase
init
firebase
emulators:start 我得到了以下控制台输
浏览 1
提问于2021-07-22
得票数 2
回答已采纳
4
回答
无法与exec连接到
firebase
模拟器
套件
firebase
、
google-cloud-firestore
、
firebase-cli
使用
以下命令启动
firebase
项目
模拟器
(它
使用
云功能和防火墙)它成功运行,并为我提供了一个连接到
函数
的路径,并显示了一个本地主机url,用于防火墙然后,为了执行我的jest测试,运行以下命令根据文档,要连接到本地firstore存储,我们需要
使用
exec编辑:
firebase
模
浏览 5
提问于2020-04-02
得票数 20
回答已采纳
1
回答
Firebase
函数
如何处理
使用
Google创建的
PubSub
主题?
firebase
、
google-cloud-pubsub
我发现有两个来源间接引用了这样一个事实:当
使用
Firebase
创建Google订阅时(
使用
firebase
-functions/v1 npm包),
Firebase
会自动创建
PubSub
主题和
PubSub
订阅: 因此,您不需要(例如)
使用
$ gcloud
pubsub
topics create $TOPIC_NAME和$ gcloud我想在
Fir
浏览 10
提问于2022-06-18
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
python yield在函数中起返回值中的使用
分类汇总SUBTOTAL函数在Excel中的使用方法
怎么在excel表格中使用常用函数提取姓名中的姓氏
丰田将率先使用英伟达自动驾驶模拟器:在虚拟世界中测试无人驾驶
如何使用闭包函数在thinkphp模型中操作数据库的增删更查
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券