我填写了一个注册表格后在反应应用程序中实现了发送确认电子邮件,并尝试使用我自己的电子邮件在本地进行测试,但我没有收到任何电子邮件,控制台也没有记录我的消息,但它仍然是将数据写入数据库,我可以在firebase控制台的身份验证选项卡中看到自己是用户

When a user submits the form:

handleSubmit(e) {
    e.preventDefault();
    firebase.auth()
    .createUserWithEmailAndPassword(this.state.emailValue, this.state.passValue) 
    .then(() => {
        this.setState({
            showErrorMessage: false
        })
        var user = firebase.auth().currentUser;
        writeUserData(user.uid, this.state.name, this.state.emailValue)
        user.sendEmailVerification().then(() => {
            console.log("verification email sent")
        }).catch((error)=>console.error(error))
    })
    .catch((error) => {
        this.setState({
            error: error,
            showErrorMessage: true,
        })
        console.error(error)
    })
}

When the form component mounts:

componentWillMount() {
        firebase.auth().onAuthStateChanged((user) => {
            if (user) {
                window.location = "thank-you"
            } 
        })
    }

提交表单时,我在控制台中收到此错误: {code: "auth/network-request-failed", message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred."}

我究竟做错了什么?我正在关注所有firebase文档