当试图使用Firebase deploy部署我的Firebase函数时,我会得到以下错误:
Error: Error occurred while parsing your function triggers.
Error: Failed to initialize Google Cloud Firestore client with the available credentials. Must initialize the SDK with a certificate credential or application default credentials to use Cloud F
我只想安装firbase作为数据库,但是得到了这个错误:
ERROR Error: permission_denied at /courses: Client doesn't have permission to access the desired data.
at errorForServerCode (index.cjs.js:647)
at onComplete (index.cjs.js:9114)
at Object.onComplete (index.cjs.js:12681)
at index.cjs.js:11797
at Pe
我正在遵循的示例
所以我的index.html里有这个
<body>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-app.js"></script>
<!-- include only the Firebase features as you need -->
<script
完全误差
Uncaught (in promise) FirebaseError: Missing or insufficient permissions.
at index.esm2017.js:10913
at Y.<anonymous> (index.esm2017.js:10865)
at qb (eventtarget.js:351)
at D (eventtarget.js:481)
at Z.wa (webchannelbasetransport.js:369)
at sc (webchannelbase.js:2193
我为学校准备了一个应用程序。有一些特性,但它们没有功能。我指的是学生或用户,不要写任何东西。他们只读帖子,读公共汽车时间等。尽管如此,消防基地给出一个错误。首先我用了
allow read write: if true
但我知道这不安全。那我在这里该怎么办?我做了request.auth != null,因为您知道我的应用程序没有任何身份验证。所以用户不能写任何东西。尽管如此,firebase还是会产生这样的错误:
Status{code=CANCELLED, description=Disconnecting idle stream. Timed out waiting for new ta
我已经设置了模拟器工作,我可以访问它的端口4000。我还看到了Firestore状态"ON“。
但是,当我试图进行查询时,我得到:
Access to fetch at 'http://localhost:8080/google.firestore.v1.Firestore/Listen/channel?database=projects%2Ffresh-divot%2Fdatabases%2F(default)&VER=8&RID=14788&CVER=22&X-HTTP-Session-Id=gsessionid&%24httpHea
有没有人能帮我纠正这个错误?我见过类似的回答"Firebase firestore cloud functions showing Error: Invalid use of type“undefined”as a Firestore argument",但这个答案没有帮助。
Error: Invalid use of type "function" as a Firestore argument.
at Object.customObjectError (/user_code/node_modules/firebase-admin/node_modul
我试图在我的google云函数中获取Firestore文档,但是Firebase Admin SDK抛出了一个错误,我不确定如何修复Admin SDK库中的错误。我已经将firebase-admin依赖项更新到^8.0.0,但没有用。
TypeError: this._firestore.getAll is not a function at DocumentReference.get
(***/functions/node_modules/@google-cloud/firestore/build/src/reference.js:198:32) at updateClaims (***/
我已经部署了一个Cloud函数来更新一些聚合数据,但是
错误:无法从修复值中解码类型:{"integerValue":"3"}在exports.aggregateReceivedRatings.functions.firestore.document.的DocumentSnapshot.get (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/firestore/src/document.js:372:17) at DocumentSnapshot._decodeValue D
我是新来的反应本地人/世博会。我正在尝试将Firestore与我的应用程序集成,这样我就可以持久化一些数据。
我在一个名为firebase.js的文件夹中创建了一个文件config
import * as firebase from "firebase";
import "firebase/firestore";
const firebaseConfig = {
// All the relevant firebase config data is here, removed for this post
};
// Initialize Firebase
获取运行时异常,同时尝试使用Firebase Auth和In-App消息传递。一旦我试图使用Firebase验证用户,获得以下异常-
I/FIAM.Headless: Starting InAppMessaging runtime with Installation ID dT********Gl49TUSZRKMx
E/AndroidRuntime: FATAL EXCEPTION: main
Process: buzz.anusmarak, PID: 24274
java.lang.RuntimeException: Internal error in Cloud Fir
尝试学习Firebase添加到我的React项目中。许多答案使用Firebase处理旧版本。请阅读Firebase 9是一个很难找到答案的重大更新。我一直在犯这个错误:
fetchxmlhttpfactory.js:270 POST http://localhost:8090/google.firestore.v1.Firestore/Listen/channel?database=projects%2Fabc-chart%2Fdatabases%2F(default)&VER=8&RID=41901&CVER=22&X-HTTP-Sessio
我有一个问题,我们的应用程序能够阅读从消防站。我们有一个带有两个变体的应用程序,发布和调试。一切都很顺利,我什么也没改变。
生产/发行工作很顺利。
我正在开发一个单独的应用程序,它使用的是同一个消防站,而且这个应用程序也很好(还没有发布)。
我在googled上搜索了这个问题,他们中的大多数都让我这么做了,但几乎所有的答案都是将安全规则更改为:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if tru
我正在为google云函数写一个测试,它会将一些信息写入到一个firestore数据库中。测试使用firebase-functions-test和jest。当我部署它时,我正在编写的函数可以成功工作,但是当我尝试运行测试时,我得到: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at GrpcClient.loadProto (node_modules/google-gax/src/grpc.ts:182:23)
我有一个谷歌云功能,它可以将状态信息从Firebase实时数据库同步到Firestore数据库(如here所解释的)。以下是链接示例中的相关Cloud Functions代码: const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
// Since this code will be running in the Cloud Functions enviornment
// we cal