简体   繁体   English

ECONNREFUSED 尝试在 shell 上运行 Firebase pubsub scheduled cloud function 时出错

[英]ECONNREFUSED Error when trying to run Firebase pubsub scheduled cloud function on shell

I am trying to run a pubsub.schedule function on Firebase emulator.我正在尝试在 Firebase 模拟器上运行 pubsub.schedule function。 I tried to follow the instructions in the following links.我尝试按照以下链接中的说明进行操作。

https://github.com/firebase/firebase-tools/issues/1748#issuecomment-609735979 https://github.com/firebase/firebase-tools/issues/1748#issuecomment-609735979

https://firebase.google.com/docs/functions/local-shell#set_up_admin_credentials_optional https://firebase.google.com/docs/functions/local-shell#set_up_admin_credentials_optional

I keep getting the error below when I run firebase functions:shell .当我运行firebase functions:shell时,我不断收到以下错误。

Error: Server Error. connect ECONNREFUSED 127.0.0.1:4400

Any idea how to solve it?知道如何解决吗? Thank you.谢谢你。

In my case, this was caused by Microsoft Defender, it may be any other firewall block.在我的情况下,这是由 Microsoft Defender 引起的,它可能是任何其他防火墙阻止。 Try running "firebase emulators:start" in the same cmd window, if you get a message from MS Defender, click "Allow".尝试在同一 cmd window 中运行“firebase emulators:start”,如果您收到来自 MS Defender 的消息,请单击“允许”。 Then you can stop the emulators and run "firebase functions:shell" in the same cmd window, it should work properly.然后你可以停止模拟器并在同一个 cmd window 中运行“firebase 函数:shell”,它应该可以正常工作。

In my case, after running "firebase emulators:start" everything worked.在我的例子中,运行“firebase emulators:start”后一切正常。 It appeared that the command installed a few.jar files and perhaps that was the reason.该命令似乎安装了几个 .jar 文件,也许这就是原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase Cloud Functions 错误:连接 ECONNREFUSED - Firebase Cloud Functions Error: connect ECONNREFUSED Firebase预定云function不删除节点 - Firebase scheduled cloud function not deleting nodes 尝试解析从 Google Cloud PubSub 检索到的协议缓冲区架构时出现“错误:非法令牌‘字符串’” - "Error: Illegal token 'string'" when trying to parse protocol buffer schema retrieved from Google Cloud PubSub 在运行连接到 Redis 实例的 Google Cloud Function 时遇到“错误:连接 ECONNREFUSED 127.0.0.1:6379...” - Encountering "Error: connect ECONNREFUSED 127.0.0.1:6379..." when running Google Cloud Function connecting to a Redis Instance 云 Function:尝试从 Firebase RTDB(打字稿)读取时,错误客户端处于脱机状态 - Cloud Function: ERROR Client is offline when trying to read from Firebase RTDB (Typescript) 尝试运行 firebase 仿真器时出现 Java 错误 - Java error when trying to run firebase emulators Firebase 云 function cors 即使添加 cors 中间件也会出错 - Firebase cloud function cors error even when adding cors middleware 尝试向 Cloud Run 容器发出 HTTP 请求时出现 404 错误 - 404 error when trying to make HTTP request to Cloud Run Container 尝试部署到 Google Cloud Run 时出现权限错误 - Permission error when trying to deploy to Google Cloud Run 部署Firebase云function时这个错误是什么意思 - What does this error mean when deploying Firebase cloud function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM