-
Notifications
You must be signed in to change notification settings - Fork 2.2k
@firebase/firestore: Firestore (10.7.1): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds. #3482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Very little information to deduce the problem. Please upload a part of your project on stackblitz where we can reproduce this issue. Or if possible please share a github repository. |
@Sapython - The initialization part is very generic which anyone would do normally. It's been shared in the description. Apart from this, I have a lazyLoad service file that would be invoked with the required parameters every time on different components. Please find the contents of the file below.
Unfortunately, I would not be able to create a stack blitz project because of the complexity and unable to share access to the project because of the confidentiality. |
Ok, nothing here seems, that can cause connection issue. I have a suggestions
Check if Firebase is working.
|
Finally, after much digging around the internet, I've resolved this issue by the below steps. However, I was not able to find the root cause for the same. My application uses a combination of modular v9 library and compatibility library for a few functionalities. This is where I had to use the initialization features of the application for both modular and compatibility libraries. I presume this could have been one of the reasons for the issue. Based on this presumption, I eliminated the dependency on the compatibility libraries and started using modular v9 features. My code now looks like the below: app.module.ts
lazyload.service.ts
However, even after the above changes, I was getting the same behavior, which when further inspected, I noticed many of them were using ERROR FirebaseError: Expected type 'Query', but it was: a custom dh object One of the suggestions was to downgrade the Firebase version as well to v9, which I followed. This, however, ended up resolving the issue but created one more issue which was related to the version of Ultimately, I had to override the
I'm still not sure if this was a problem with Hope this helps someone. |
@kshkrao3 - I'm getting similar errors when trying to move to 16+.
I'm not sure why either... Any update from your end? |
Issue detail
I'm getting the below error almost whenever any user opens my site.
I reached out to Firebase support, and this is what they had to say.
I tried to follow their instructions by adding
experimentalforcelongpolling
in my environment file but that did not help.I could not find any documentation on how to use this with the firestore for the way I'm initializing the app in my app.module.ts.
My app.module.ts looks like this:
Is there any way I can try to add
experimentalforcelongpolling
by the way I'm initializing the app? or is there anything else I can try to resolve this issue?The site URL to reproduce the issue: https://rangapayana.com
Version info
Angular: 16.2.12
Firebase:^10.7.0
AngularFire:^16.0.0
Expected behavior
The application should load the data normally.
Actual behavior
The site will be loaded blank with the above-mentioned error.
Please let me know if you need any more information. I'd be happy to add.
The text was updated successfully, but these errors were encountered: