[英]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.