-
Notifications
You must be signed in to change notification settings - Fork 49
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
Failed to execute 'index' on 'IDBObjectStore': The specified index was not found. #30
Comments
I'm on extended vacation right now and may get back to looking at this in a The "uncaught" is from an exception being thrown in promise handling and I'm fairly certain the error is in your code though and I'm not able to Best of luck.
|
Could you be more precise on where .catch is missing? Because from the Angular documentation
is a shortand for
I tried to use the function findBy(index, id) instead of findWhere(), but the result is the same. My point is: shouldn't the error be handled inside the library, in the form of a promise being rejected? |
Okay I've looked at the code a bit more in depth and I can try to submit a pr in the next days. |
Feel free. |
Oh well, I tried and failed. |
In my code I have a function like that:
If I try to query IDB with an index that does not exist, I would expect the exception gets caught and logged. The problem is when I try to test this behaviour, I get:
I was wondering if it's a problem with angular mocks or with angular-indexedDB.
In my test I am injecting $indexedDB
The text was updated successfully, but these errors were encountered: