I'm unable to run auth.

5,106 views
Skip to first unread message

Sorasak Siangsanan

unread,
Jun 28, 2016, 9:53:33 AM6/28/16
to Firebase Google Group
I'm unable to run auth. it gives me below error

auth/network-request-failed:: A network error (such as timeout, interrupted connection or unreachable host) has occurred.

please advice how to get around this error

thanks

Bassam Ojeil

unread,
Jun 28, 2016, 7:28:34 PM6/28/16
to Firebase Google Group
Can you provide a code snippet as well as additional environment/platform information.

Daniel Steigerwald

unread,
Jul 9, 2016, 10:11:31 PM7/9/16
to Firebase Google Group
I have the same problem. https://github.com/steida/firebase/issues/15
It happens in iOS Facebook embedded browser.

amitr...@sixmod5.com

unread,
Jul 10, 2016, 12:31:17 AM7/10/16
to Firebase Google Group


I am also facing the same problem in Android ,auth failed

Jacob Wenger

unread,
Jul 10, 2016, 9:23:32 PM7/10/16
to fireba...@googlegroups.com
Discussion also ongoing here. As Bassam mentioned, please provide a code snippet and the environment (OS, web browser, version info, etc.) you are using to help us debug.

On Sat, Jul 9, 2016 at 8:40 PM, <amitr...@sixmod5.com> wrote:


I am also facing the same problem in Android ,auth failed

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e0f0e6f2-8826-464c-8cdc-695bf63e652c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Christopher Dolinski

unread,
Jul 25, 2016, 7:56:18 PM7/25/16
to Firebase Google Group
I'm facing a similar issue: 

library cordovaOauth
firebase version 3.0.3
ios emulator, iphone-6s, 9.3 simulator

Error:
3     873397   log      A network error (such as timeout, interrupted connection or unreachable host) has occurred.
4     873397   log      auth/network-request-failed

Here is my code :

self.signInSocial = function() {
       return $q(function(resolve, reject) {
        $cordovaOauth.facebook("208207529514102", [ "public_profile", "email"])
        .then(function (result) {
            var credentials = firebase.auth.FacebookAuthProvider.credential(result.access_token);
            return firebase.auth().signInWithCredential(credentials);
        })
        .then(function (firebaseUser) {
            resolve(firebaseUser);
        })
        .catch(function (error) {
            reject(error);
        });
       })
};

Bassam

unread,
Jul 26, 2016, 3:24:37 AM7/26/16
to Firebase Google Group
Hey Christopher, the old version you are using did not properly support non http/https environments. Switch to 3.2.0 and try again.
Also make sure you are using correct settings in the Content-Security-Policy if you are using one.

Christopher Dolinski

unread,
Jul 26, 2016, 10:18:03 AM7/26/16
to Firebase Google Group
Hi Bassam, 

The update to 3.2.0 fixed it, thank you for the response and your work on firebase!

Chris

Edward Williams

unread,
Aug 25, 2016, 10:40:11 PM8/25/16
to Firebase Google Group
I'm new to Firebase and going through the Youtube tutorial on setting up authentication. I am trying to put together a really simple web page to practice email/pass auth. I'm running into issues when trying to sign in with previously created users or while trying to create a user; the log says "A network error (such as timeout, interrupted connection or unreachable host) has occurred". I'm developing the page locally, if that helps. Here's the code:

(function() {
 
 const txtEmail = document.getElementById('email-field');
 const txtPassword = document.getElementById('password-field');
 const btnSignIn = document.getElementById('sign-in-button');
 const btnCreateAcct = document.getElementById('create-acct-button');
 
 //Add button listener
 
 btnSignIn.addEventListener('click', e => {
 const email = txtEmail.value;
 const pass = txtPassword.value;
 const auth = firebase.auth();
 
 //Perform signin
 const promise = auth.signInWithEmailAndPassword(email, pass);
 
 promise.catch(e => console.log(e.message));
 
 });
 
 btnCreateAcct.addEventListener('click', e => {
 const email = txtEmail.value;
 const pass = txtPassword.value;
 const auth = firebase.auth();
 
 //create user
 const promise = auth.createUserWithEmailAndPassword(email, pass);
 
 promise.catch(e => console.log(e.message));
 });
 
 firebase.auth().onAuthStateChanged(firebaseUser => {
 if(firebaseUser) {
 console.log(firebaseUser);
 } else {
 console.log('not logged in');
 }
 });

}());


Rodrigo Olivera

unread,
Sep 7, 2016, 9:35:21 PM9/7/16
to Firebase Google Group, drmu...@gmail.com
I have the same error, im also developing localy for WEB it started two weeks ago, before that the popup worked just fine...

Bassam

unread,
Sep 8, 2016, 3:33:46 PM9/8/16
to Firebase Google Group, drmu...@gmail.com
Hey Rodrigo, when you say locally, do you mean via http://localhost ?
Can you provide information on the browser you are using? We discovered an IE popup bug in the latest version 3.3.1. We should be releasing a fix asap.

Jason Washo

unread,
Jul 5, 2017, 9:24:40 PM7/5/17
to Firebase Google Group, drmu...@gmail.com
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.
Reply all
Reply to author
Forward
0 new messages