-
Notifications
You must be signed in to change notification settings - Fork 937
firebase.loadFirestoreRules timing out in emulator #1396
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
I found a few problems with this issue:
|
Having narrowed down the issue, it can be much simpler to reproduce with: await firebase.loadFirestoreRules({ projectId, rules }) // ~20 ms
await firebase.loadFirestoreRules({ projectId, rules }) // ~900 ms
await firebase.loadFirestoreRules({ projectId, rules }) // ~1600 ms
await firebase.loadFirestoreRules({ projectId, rules }) // ~2500 ms
await firebase.loadFirestoreRules({ projectId, rules }) // ~4400 ms So the time to load the rules is roughly doubling with every call. |
firebase.loadFirestoreRules
emulator timing out
firebase.loadFirestoreRules
emulator timing out
One workaround is to set a very high timeout e.g. in the case of jest |
This is likely the same issue that was fixed for the Firestore SDK in #1390 I'll do the same thing in the rules loader |
As a workaround, you can set the environment variable |
Thanks for the updates @ryanpbrewster, glad to see this sorted. |
Uh oh!
There was an error while loading. Please reload this page.
Describe your environment
Describe the problem
It appears that successive calls to
firebase.loadFirestoreRules
are increasingly slower, to the point where it quickly becomes unusable.This is a regression, though I have not been able to pinpoint where, and might be Mac specific.
Relevant Code:
Minimum working reproduction here: brianmhunt/bug-reports#firestore-emulator-timeouts
Steps to reproduce:
Sample output from the reproduction repo:
The text was updated successfully, but these errors were encountered: