Open shirlev-wix opened 4 years ago
I can second this behavior. I tell my users to switch networks and use their phones hotspot to go around this issue.
I'm sure firebase team either don't care or don't know how to solve this issue, but they are definitely aware of it. There has been countless tickets and SO questions regrding that issue.
Had the same issue
I have the same issue too. Works fine in mobile browsers, however, when downloading PWA, get (auth/network-request-failed) error. Then after, removing another app from firebase, to just have one web app for the project.. it works fine again.
Look, this can happen because the function does not have enough time to execute. Make it asynchronous. I solved the problem this way. Example:
await this.fireservise.UpdateData(name,group).then(()=>{
location.reload()
})
async UpdateData( name:string, grpup:string){
const auth:any = getAuth();
await updateProfile(auth.currentUser, {
displayName: name, photoURL: grpup
}).then(() => {
localStorage.setItem('Name',name)
localStorage.setItem('Group',grpup)
}).catch((error) => {
alert("Error")
});
}
In case it helps someone.
I had the same issue and lost many hours investigating.
It turned out that in my case, it was simply a DNS issue in the firebase layer.
localhost
in the URL of the emulator was not resolved.
I replaced it with 127.0.0.1
and it is working fine.
It would have been really easier if the error message was not hiding the stack trace.
I also faced the same issue, but while switching the data networks it started working! I switched from Wifi to Mobile Data.
I have the same issue. But I didn't find the solution yet. How can I fix that?
Same problem here...
My dependencies:
{ "firebase": "^9.12.1", "next": "12.2.5", "react": "18.2.0", }
Error message: Firebase: Error (auth/network-request-failed).
I already checked all my authorized domains in console.firebase, and the other's requests like login & signing is fine. Just the reset password give me this error
Still happening when I try to mock firebase rest API using nock
on jest
"dependencies": {
"@react-query-firebase/auth": "^1.0.0-dev.2", "firebase": "^9.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-query": "^3.39.2",
"react-router-dom": "^6.4.2",
},
Hi, can you elaborate on the steps? I am unable to get the DNS firebase layer part where exactly do I have to replace the
localhost
with127.0.0.1
? ( in my code or in the firebase or cloud console ??)
Hello. Could you tell me about you please?
On Mon, Oct 31, 2022 at 3:42 AM SSOURABH58 @.***> wrote:
Hi, can you elaborate on the steps? I am unable to get the DNS firebase layer part where exactly do I have to replace the localhost with 127.0.0.1? ( in my code or in the firebase or cloud console ??) [image: image] https://user-images.githubusercontent.com/52000724/198989581-79793ea1-d06c-4052-9de6-2e8d9b63390e.png
— Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-js-sdk/issues/2652#issuecomment-1296904497, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OTQAGIHZVWES4LK3ZRRHDWF6PABANCNFSM4KYPBC2A . You are receiving this because you commented.Message ID: @.***>
Someone here already solved this issue?
I am having the same issue, after some research I came across this https://github.com/firebase/firebase-js-sdk/issues/6322#issuecomment-1146598147 seems like configuring firebase for web in react native has an edge case. The emulators connect to different ports and causes the issue. Though I am not sure how to change my port on expo for the emulator. I tried creating a firebase.json
file in the root folder and specify the ports and then run firebase emulators:start
but it does not start the emulator. Errors out saying
Error when trying to check port 9099 on 10.0.2.2: Error: listen EADDRNOTAVAIL: address not available 10.0.2.2:9099
any suggestions ?
- S proxy 8.8.8.8 for Android emulator.
Is this only a development issue or also happens on production. I am also facing the same issue. How do you set DNS proxy ?
For me solution was just to reload emulator. It suddenly had a pour connection, what I checked with db, so for me it was just an emulator bug.
Same error for me as well
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Getting an error when running on debug mode on the simulator (both for ios and android)
Steps to reproduce:
Relevant Code:
I created a small react native app to reproduce the bug: https://github.com/shirlev-wix/firebase-bug
Thanks!