-
Notifications
You must be signed in to change notification settings - Fork 929
Kaspersky antivirus breaks Firestore ("Could not reach Cloud Firestore backend.") #1190
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 comment has been minimized.
This comment has been minimized.
+1 |
I think that anti-virus software is causing this error as one of the causes. |
This comment has been minimized.
This comment has been minimized.
In our case it was also the anti-virus (Kaspersky). It worked without it. |
I feel that I have same problem because I have Kaspersky as well. |
I'm also using Kaspersky and I encountered this problem frequently. |
This comment has been minimized.
This comment has been minimized.
Same problem here since a week or two. Also Kaspersky...
after 30+ seconds the data from firestore finally loads
If I reload the page and navigate to another page, where firestore data is loaded, I immediately get the data back without the error. 😕 If I pause Kaspersky the error does not occurr.
|
Same here. My users (in web browsers) get the same message about firestore not being able to reach its backend once Kaspersky is activated on a Win 10 machine... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
+1 |
So I just generated a new angular project and only used the firebase sdk (5.5.2) to see if some other package causes the issue. It had the same outcome. I currently have Kaspersky Internet Security 2018 installed. When I switch off the web anti virus feature the error does not occur! I immediately get all my desired data back from firestore. My current workaround for development is to leave web anti virus running and to add the following url to the tursted websites within the web anti virus settings of kaspersky:
This seems to work, but would only be acceptable for development. |
@gamsterx It would be very helpful if you could report this as a bug to Kaspersky. Unfortunately there isn't much that we can do if 3rd-party software is blocking our network access. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
same here. In my case it was due to the Adguard I was using |
Have same Problem with Kaspersky + Firestore. |
Thanks @pitw ! Much appreciated. |
Response of Kaspersky: randomly and is Not only caused by kaspersky, but for other sources too.. So better contact "github.com" or Kaspersky Technical support at this weblink : https://my.kaspersky.com/support Then? |
Perhaps somebody experiencing the issue can go ahead and follow the "Request Technical Support" button from https://my.kaspersky.com/support ? Be sure to let them know that at least 7 developers here are reporting that Kaspersky is preventing their Cloud Firestore apps from working and that adding https://firestore.googleapis.com/* to the trusted sites list works around the issue, but as an app developer, it's not a viable solution to ask all your customers to do that. And if you can provide a simple site demonstrating the issue, it's probably more likely to get traction faster. |
@mikelehen Its reported. We have now a trackable issue from Kasperksy. Will report here what they think. Edit 1: They wanted some screenshots + demolinks. They got them; Now waiting how fast they are. Final Edit: Kaspersky opened Bug Nr. 3056440. Devs should fix this asap - then everything should work as expected. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
And bug is here again...
Happened after upgrading Kaspersky to 19.0.0.1088 (d) I'm a little bit sceptical if that bug reallly is fixed... |
@pitw hover over the Kaspersky icon. |
You're right. Thanks. After download, install, restart (1.Time), finish install... Version was still "D" but Database updates worked. |
I did the same thing :) |
The problem still exists on the Kaspersky Internet Security newest version... |
@danieldanielecki Can you visit https://debug-my.firebaseapp.com and share your results (e.g. in a gist)? If this is really happening again, you (or somebody else) will likely need to reach out to Kaspersky as the issue had been solved (as noted in the above release notes and confirmed by several people on this thread). |
@danieldanielecki As I'm almost paranoid now with Kaspersky + Firebase ;) I tried with several stations which were before concerned from bug. If you move your mouse over the Kaspersky Icon does it look like this ? As @anisabboud told above -> the (f) is important! It should work then - double checked on our side (also with the very nice debug tool ;)) |
I think I am affected by this issue as well. Could we please get a way to check (from JavaScript) that this error has occurred? (I can see it in the console, of course.) That would make it possible to tell users. |
@lborgman Unfortunately, as far as the SDK can tell, the issue is indistinguishable from just being offline or on a slow internet connection... FWIW- That message is logged if our connection fails or (in the case of Kaspersky usually) doesn't succeed within 10 seconds. You could get a similar signal by just doing a |
@mikelehen Thanks, that looks nearly like what I want. I guess it is this? https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/Source However it would be nice to be able to check if the result I got from my original query is from the server. Hm. Maybe there is some way to find out this already and I just have to read the docs? |
@lborgman Both QuerySnapshot.getMetadata() and DocumentSnapshot.getMetadata() expose this via the SnapshotMetadata object. You can take a look at the |
If it's fixed It's only fixed on Kaspersky 19+ |
Strange, I am only experiencing this in Chrome. Not in Firefox or Edge or IE. Also, I went to Settings->Clear history, cookies, cache and more and used the default values to clear the cache in Chrome. The moment I did it, it works. Please try and revert back |
I don't know what exactly from KIS 20 causes the Issue but I'm 99% sure that Kaspersky is responsible for it. Tested on same machine: With Kaspersky 20 installed (Causes Firebase "Network issues"...) and with Kaspersky 20 completly removed (works perfect). Beside our "beloved" known error "Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds"... with KIS 20 there's a second error on auth (without any more log infos): Switching now back to KIS 19 where problem was solved. Edit: I don't like unfinished stuff ;) So still tried to fix / find problem with KIS 20. |
I've experienced the exact same issue using firebase, firestore and vuejs. |
@julianandrade I'm not very familiar with Kaspersky products and versioning but based on e.g. #1190 (comment) I think the original issue was fixed in Kaspersky Antivirus 19.0.0.1088 patch E. I'm not sure how that relates to the Kaspersky Endpoint Security 11.1 that you are using. For anybody running into issues with latest versions of Kaspersky software, I'd really encourage you to reach out to Kaspersky and remind them of:
FYI- For folks that are running into this issue and need a workaround, you can try adding this at the start of your app using the current Firestore SDK:
This forces the SDK to use a less-efficient long-polling mechanism that we believe works around proxies that buffer traffic indefinitely, like Kaspersky has done in the past. |
@julianandrade @mikelehen The version Julian uses is the "business" version. All the settings we talked above can be either fixed in:
If Julian don't have access to one of these --> theres no way to fix it from "user side" as usually the interesting settings are blocked by admin... 😁 |
Yup, that setting worked. Thanks. |
yes, it's a business version and I'll ask our helpdesk team to check the settings. |
Guys, one solutions is usage Firestore REST |
We recently had the same problem with Kaspersky Endpoint version 11.
that said, we cannot plan to develop an application based on this SDK knowing that the workaround could be wiped out and our users could not being able to use our services anymore. |
The intent of this phrase is that we may remove the option when the need for manually specifying this workaround is gone. Our intent is to fix the SDK to handle this case automatically. Only once that's the case will this option be removed. |
Thank you @wilhuff , this is reassuring. May I suggest you to change the docs in order to reflect this intent? |
UPDATE [by @mikelehen 2018/10/21]: This issue has morphed into specifically being about the Kaspersky antivirus software blocking Firestore. Please open a separate bug if you're encountering issues without Kaspersky.
Environment
Problem
Im using Firestore with Ionic (Angularfire2 package). Any collection or doc gives error but after ~10 seconds it gives data. Auth works without any problems.
Error:
Created new Firebase Project and new Ionic project, installed packages, tried to make collection, shows same error.
The code im trying to run:
And the console output:
The text was updated successfully, but these errors were encountered: