I am trying to create a sign up form with firebase and login as well, I have tried so many things but it won\'t work. I keep getting this error when I click the signup butto
Here's what solved the issue for me (this is for a mobile app). I could not use a tag in my html. I changed this to a div as suggested in earlier answers. I also needed to close my keyboard. I am using ionic and needed to install the the ionic native keyboard. Right before my my login function, I added this.keyboard.close()
and everything started working. If you are not using ionic, you can try the cordova plugin or something of the equivalent. Hope this helps.
While this answer is not relevant to the actual code above, I suspect a lot of people google the error:
"A network error (such as timeout, interrupted connection or unreachable host) has occurred."
It might be that your form is actually in a form element in the HTML. Small bug, but it could have huge concequences. If you are following along this tutorial: "https://www.youtube.com/watch?v=-OKrloDzGpU", please make sure your form does not have a <form></form>
tag. This will lead to this error!
I had a similar issue with the device login using Firebase but i could login on the browser. I used the following commands to resolve the issue,
--cordova plugin remove cordova-plugin-whitelist--
--cordova plugin add cordova-plugin-whitelist--
In my case, the problem resolved if you try to reconnect to the Internet.
If you are using Cordova (which I am not sure if you are or not, but some answers imply that you may be), including the cordova-plugin-network-information corrected this issue for me. I confirmed that the 'navigator.onLine' was occasionally 'false', which I believe was causing Firebase to think there was an issue. Once I added the cordova-plugin-network-information to my project, the problem went away. I didn't dig deep into why, but I suspect this plugin has a better wrapper around the navigator which may be giving Firebase better information. I did confirm this problem came back after removing the plugin, but re-applying it fixes it. I will update this if I dig deeper. I hope this helps.
The solution for me was trying it in Firefox. I do not know why, but I also got an error in Chrome. You should try that. Regards.