如果我尝试使用以下命令创建新用户createUserWithEmailAndPassword(emai, password) 在espresso测试用例中,使用Firebase Emulator Suite不会发生任何事情。同样的代码也适用于实时Firebase实例。日志未显示任何内容。 我正在尝试使用Firebase Emulator Suite来测试我的应用程序。模拟器已正确启动。日志显示: ┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now
如何启动Firebase模拟器,我已经执行了中提到的所有步骤。以下是我尝试运行模拟器时的输出:
=== Emulators Setup
? Which Firebase emulators do you want to set up? Press Space to select emulator
s, then Enter to confirm your choices. Firestore
i Port for firestore already configured: 8080
? Would you like to download the emulators now? Yes
i
我尝试过以下几种方法
$ firebase emulators:start
i emulators: Starting emulators: functions, database, hosting
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: firestore, pubsub
⚠ Your requested "node" version "node
我正在创建一个用户在防火墙与一些额外的细节。我使用用户firebase的createUserWithEmailAndPassword,然后将其他详细信息添加到具有该函数生成的相同身份验证id的子级下。但是,当我这样做时,它也会生成一个具有相同用户信息的“未定义”子名称。
以下是代码:
async register(user: User) {
var id : string;
try {
//uses Firebase's Authentication Services to store email and password
const
我们正在尝试在发布firebase功能之前创建一个开发环境。
我们已经成功地安装并启动了一个本地模拟器,可以访问我们的防火墙数据库,可以调用HTTPS端点等等。启动firebase emulators:start显示:
firebase emulators:start --import=./testdata
i emulators: Starting emulators: functions, firestore, hosting, pubsub
⚠ functions: The following emulators are not running, calls to these ser
当我在项目中运行firebase emulators:start时,该命令具有以下输出:
i emulators: Starting emulators: functions, firestore, hosting
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, pubsub, storage
⚠ Your requested "node&
我已经在本地部署了一个带有类的k8s集群。firebase模拟器运行在集群内部的一个吊舱上,并分配了一个ClusterIp服务。当我从kind-firebase.yaml service.yaml pod向发送请求时,由于无法建立连接,请求失败。
错误
failed to establish a connection:
Post \"http://firebase-service:9099/identitytoolkit.googleapis.com/v1/projects/demo-test
CONFIGS:
firebase.json:
{
"emulators
当发生createUserWithEmailAndPassword事件时,SignUpUser函数中没有调用onClick函数。但是当我做onClick={signUpUser(email,password)}的时候它就起作用了
import React from 'react';
import styled from 'styled-components';
import { useState } from 'react';
import { signUpUser } from '../firebase';
function
我遵循下面的指南来设置firebase模拟器来测试我的实时数据库安全规则:https://firebase.google.com/docs/emulator-suite/connect_rtdb#clear_your_database_between_tests 在“清除两次测试之间的数据库”中,它建议这样做: firebase.database().ref().set(null); 然而,我的安全规则阻止我的应用程序这样做。 下面是我的代码: import * as firebase from '@firebase/testing';
import fs from '
我在windows 10机器上本地运行所有的firebase模拟器。但是,由于函数dir位于不同的项目/位置,因此我将分别运行函数模拟器。似乎触发器没有被模仿,我得到了下面的警告。除了触发器/背景函数之外,所有东西似乎都正常工作。
有什么解决办法吗?
i emulators: Starting emulators: functions
! hub: emulator hub unable to start on port 4400, starting on 4401 instead.
! emulators: It seems that you are running multiple
我已经设置了Firebase ,并让我的iOS应用程序访问本地服务器。我想验证一些云函数(在文档写入时)是否按预期执行,但我不能验证数据是否在那里。我可以通过运行deploy并检查Firebase控制台数据库选项卡来实现这一点,但这只是一个在开发期间可行的解决方案。我想我也可以从iOS客户端执行get,但希望有一种更简单的方法来查看JSON。
CLI打印出许多本地URL,但没有一个包含我可以看到的任何数据:
✔ hub: emulator hub started at http://localhost:4400
✔ functions: functions emulator started
我想将显示名称添加到刚刚创建的用户。但是当我执行createUserWithEmailAndPassword时,它会说我的currentUser为空。有什么问题吗?
var name = document.getElementById("name").value;
var username = document.getElementById("username").value;
var email = document.getElementById('email').value;
var password = document.getElemen