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
"Create index" link not provided (firebase 8.7.1) #5152
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
It seems that only the Client SDKs are returning an error
You can try calling this function in a browser and get the index creation link. |
Hi @charles-allen, thanks for the report. I was able to replicate the issue. Let me bring this matter to the attention of our engineers here and update this thread if I have any information to share. |
We're also seeing similar reports on other platforms. It seems to be a backend issue and currently being tracked internally. For reference, see b/193768583. |
We are encountering this too for all required indexes not built. |
any updates? |
Got the same error, any updates ? |
Looks like we're going to stick with this problem and create the indexes manually :( |
Any updates? It breaks my app completely. |
Unless your app is automatically creating missing indexes (which sounds like a questionable design decision), this is not breaking your app. Just create the index manually in Firebase Console. It's slightly less convenient, but I wouldn't consider this bug to be blocking. |
I'm having the same issue and for some reason I can't even create an index manually from the console. |
I mean you can still create those click to create index links from Admin SDK in emulator @jailsondamasceno 👀 |
Hi , Any update on this. FYI If manually create on console it also not working as intended. |
This is not what I'm seeing. I made an index manually using the console and my code now runs fine. If you're having problems with the console you should open an issue with details, screenshots, etc. |
Also having troubles with this. I can create an index via the console but it still does not recognise it once it is built, giving me the same error. |
@dionkas Here, likewise |
Same problem... |
Same issue and its really costing me a lot of time .... Please fix |
@r-ndom-developer @Lazy-Developer-here @dionkas @jailsondamasceno - I have only reported the lack of link in the error message. You are not reporting the same as what I'm seeing and reported. If you have an additional issue you must provide:
In my case, I was able to make an index & run my code. I am not blocked at all. Additionally this was for a class. My students were also able to make the index successfully (though many of them first made typos in the collection name, field names, or direction). In all cases we corrected the index and the code ran successfully. Please share the details of your failing index |
@charles-allen we are reporting the same issue. Not creating indexes via firebase’s “create link” because that is not provided now. |
I'm trying to get you to elaborate on the "also". I don't think broken indexes are a side-effect of the bug I reported. I have repeatedly reported that my indexes are working (when created manually in Firebase Console). If you have an "also" issue, show it here (or make a new issue). Show what you tried. I don't think you're blocked. I don't think your broken index is related. We can fix it now. |
Hi @charles-allen , Does firestore indexing working for you? able to retrive data for multiple conditions in single query. For Single query it is working if you add multiple conditions with already created document working? |
Yes
Yes, for the query in my original post
Yes, all my documents existed before I made the index For reference, here is my index: My only issue is that I had to create this index manually. I usually click the link in the error. This is why I'm encouraging others to share if they are seeing different. Perhaps my example is insufficient; perhaps you can workaround the majority of the pain. |
Note: I only replicated this once. From memory my code errored, then I only added the index (and nothing else), and then it worked. But my memory isn't perfect! Maybe I've missed something or perhaps my example is unusual. |
Same problem here. I do not get the link from the console and I keep getting the error after creating the index manually. this is my query
and this is my index Note: indexes like this created previously work fine. The problem is only with new indexes What am I doing wrong? |
I can't see anything obvious (though I confess to not being an index pro!). I guess |
They are all string. Note the uid has a "isNotEqualTo" operator |
Looks valid to me (but again, I'm no expert). I think the orderBy in my example might be significant. I think the where part and orderBy part use the index in a different way. I read on SO that fields being used to order must be last in the index (no such limitations on the ordering of where fields in your index). I also read that you can split indexes. I don't know the rules... but perhaps you could try 2 indexes: seen+uid, uid+interest. One last observation... I can see you have another index on |
Nope the names are correct. I am hopeless |
Happens on |
The problem has been fixed via an update to the backend. |
The problem still persists in my app... I keep getting this error
|
When will this fix be available? |
It is fixed already, but you may have to update Chrome and restart it. I had this problem yesterday, but after Chrome update and restart it works! |
@schmidt-sebastian Still seeing it as well. |
same here |
here too. |
I am confirming with the backend team to see when this issue should be fully mitigated. This is a server-side only issue and should not require any changes on your end. |
I think this is actually normal (the 2nd part), albeit unexpected behavior. I guess all your where clauses are just equals. I think the indexes are only needed when you have inequalities (>, >=, etc), not-equals, not-in, ordering. Multiple equals conditions seems to work by default (did for my query with 2 equals only), I guess by combining the default single indexes?? |
Thanks for the updates @schmidt-sebastian
Suggest you update your DoD to include "fix fully deployed" to block closing public issues before the fix is available to everyone (it causes confusion closing it early; and none of us care about the issue's status on Github, only whether the fix is working). Edit: this was supposed to be a helpful suggestion, but when I read it back, it sounds bad. Sorry! |
Confirmed working. |
Describe your environment
firebase
8.7.1Describe the problem
I wrote a query that requires an index. It errors with this message (which doesn't contain a link to create the index):
Steps to reproduce:
Relevant Code:
The text was updated successfully, but these errors were encountered: