firebase-js-sdk
firebase-js-sdk copied to clipboard
Error (auth/network-request-failed)
Operating System
Windows 11
Browser Version
Version 1.62.162 Chromium: 121.0.6167.164 (Official Build) (64-bit)
Firebase SDK Version
10.8.0
Firebase SDK Product:
Auth
Describe your project's tooling
React and Node
Describe the problem
Trying to check the login and signup using insomina api testing software and whenever api is being called it is showing this error: Error (auth/network-request-failed)
const { getAuth, createUserWithEmailAndPassword, signInWithEmailAndPassword } = require('firebase/auth');
const { initializeApp } = require('firebase/app');
const { error } = require('../utils/responseWrapper');
const firebaseConfig = {
...
};
const app = initializeApp(firebaseConfig);
const auth = getAuth();
const signUp = async (email, password) => {
try {
console.log("signUp function called");
const userCredential = await createUserWithEmailAndPassword(auth, email, password);
console.log("inside signUp function");
return userCredential.user;
} catch (e) {
// return error(400, e.message) // Propagate error for specific handling in authController.js
console.log(e.message);
}
};
const signIn = async (email, password) => {
try {
console.log("signIn function called");
const userCredential = await signInWithEmailAndPassword(auth, email, password);
console.log("inside signIn function");
return userCredential.user;
} catch (e) {
// return error(400, e.message); // Propagate error for specific handling in authController.js
console.log(e.message);
}
};
Steps and code to reproduce issue
npm i firebase
Hi @jaseemuddinn, thank you for reaching out to us. Can you share the line of code where you're encountering the error? Upon checking the Insomnia API Client, this is for the REST API request. Can you also share your use-case on what you're trying to achieve using Insomnia and JS SDK.
Hey @jaseemuddinn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!