Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 当我让用户通过firebase注册时,他正在进行身份验证,但数据并没有写入firebase数据库?_Javascript_Reactjs_Firebase_Firebase Authentication - Fatal编程技术网

Javascript 当我让用户通过firebase注册时,他正在进行身份验证,但数据并没有写入firebase数据库?

Javascript 当我让用户通过firebase注册时,他正在进行身份验证,但数据并没有写入firebase数据库?,javascript,reactjs,firebase,firebase-authentication,Javascript,Reactjs,Firebase,Firebase Authentication,当我让一个用户注册时,他被firebase验证,但数据没有保存在firebase数据库中,并给出以下错误消息。有没有办法控制这个错误 错误消息: A mutation operation was attempted on a database that did not allow mutations 您是否检查了firebase数据库的规则。 如果未选中,请更新读写权限。 如下所示 { “规则”:{ “.read”:正确, “.write”:正确 } } 写入规则是这样的。.write:

当我让一个用户注册时,他被firebase验证,但数据没有保存在firebase数据库中,并给出以下错误消息。有没有办法控制这个错误

错误消息:

   A mutation operation was attempted on a database that did not allow mutations

您是否检查了firebase数据库的规则。 如果未选中,请更新读写权限。 如下所示

{
“规则”:{
“.read”:正确,
“.write”:正确
}
}

写入规则是这样的
。.write:“auth!=null”
它会影响它吗?是的,它肯定会影响。。在我打字的时候试试规则。