简体   繁体   English

firebase web app quickstart-js 函数示例项目在调用函数时出错

[英]firebase web app quickstart-js functions sample project gives error when calling functions

I'm new to firebase.我是 firebase 的新用户。

I'm trying to get the web "quickstart-js -> functions" sample web app working.我正在尝试让 web“quickstart-js -> 函数”示例 web 应用程序正常工作。

I copied the sample into my project, got it to compile, and deployed it.我将示例复制到我的项目中,编译并部署了它。

The web UI is fine. web 用户界面很好。 Running the functions is failing.运行函数失败。

When I put in the two numbers and press the Add Numbers button, I always get:当我输入这两个数字并按下添加数字按钮时,我总是得到:

Error Code: functions/internal
Error Message:internal
Error Details:undefined

I looked at the server logs, and I didn't see any errors.我查看了服务器日志,没有看到任何错误。

Was using Firefox and having this problem.正在使用 Firefox 并遇到此问题。 On a whim tried it in Chrome.一时兴起在 Chrome 中试了一下。 Works fine in Chrome.在 Chrome 中运行良好。

Ended up removing the tags around the little forms. Seems like if you put a button in a form and click it, Firefox thinks you're submitting the form, so no firebase goodness happens.最后删除了小 forms 周围的标签。好像如果你在表单中放置一个按钮并单击它,Firefox 认为你正在提交表单,所以没有 firebase 发生。 Go figure. Go 图。 Faith in firebase restored.恢复对 firebase 的信心。

暂无
暂无

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

相关问题 Firebase 调用 Stripe 时函数出错 - Firebase Functions error when calling Stripe 从 Angular 调用 Firebase 可调用函数时出现 CORS 错误? - CORS error when calling Firebase Callable Functions from Angular? 部署 firebase 项目时出现错误显示“找不到模块 firebase-functions” - Error shows 'cannot find module firebase-functions' when deploying a firebase project 错误:内部 firebase 函数,与 nodemailer 一起使用时 - Error:INTERNAL firebase functions ,when using it with nodemailer Firebase 函数在尝试部署时导致错误 - Firebase functions causes error when trying to deploy 对 firebase 云函数的发布请求给出错误 500 - Post request to the firebase cloud functions gives error 500 从 Firebase 函数调用 API 时出现“套接字挂断”错误 - Getting "Socket hang up" error when calling an API from Firebase functions Google Cloud Functions Firebase 错误 默认的 Firebase 应用已经存在 - Google Cloud Functions Firebase Error The default Firebase app already exists 当函数目录位于不同的项目/位置时运行 firebase 模拟器 - Running the firebase emulators when the functions directory is in a different project/location 当我尝试初始化 firebase 应用程序时,为什么 Google Cloud Functions 会抛出“配置 firebase.databaseURL 的无效值”错误? - Why is Google Cloud Functions throwing a "Invalid value for config firebase.databaseURL" error when I try to initialize a firebase app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM