Problems Getting Started -- "specified object store not found" and "InvalidState" errors

610 views
Skip to first unread message

Matt Woodward

unread,
Sep 15, 2014, 5:57:08 PM9/15/14
to pou...@googlegroups.com
I'm new to PouchDB as of today but have been using CouchDB for a few years now. I decided to give PouchDB a try after working with IndexedDB for a few days on a mobile (PhoneGap/Cordova) project since in theory PouchDB should simplify things vs. using IndexedDB directly.

In general terms what I'm trying to do at this point while getting my feet wet is:
* destroy the database
* create a new empty database
* make ajax call to REST web service
* populate PouchDB with data from REST web service

Obviously I won't do that every time in the final version of the app but it seemed like a good way to get started.

I kinda sorta had things limping along for a while but now I'm consistently getting this error in Chrome:
Uncaught NotFoundError: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found. pouchdb.min.js:7
a pouchdb.min.js:7
D.onupgradeneeded pouchdb.min.js:8

Firefox isn't throwing errors just doing that piece of things, but if I try to do allDocs() on the database, Firefox throws this error:
InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.

And on allDocs() Chrome throws this error:
{"status":500,"name":"error","message":"AbortError"}

I can provide code to help troubleshoot but since I'm so new to PouchDB I thought I'd ask the general question in case I'm just missing something basic like having to manage onupgradeneeded somehow, more explicitly manage transactions, or something along those lines.

Thanks for any assistance anyone can provide. I'm looking forward to working with PouchDB.

Calvin Metcalf

unread,
Sep 15, 2014, 6:50:15 PM9/15/14
to pou...@googlegroups.com

Code would be very helpful especially a gist, also versions of everything especially pouch, if we can't solve it quickly we can open an issue

--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To post to this group, send email to pou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/b014f552-16e5-4085-9e9d-eeb073920ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

no...@nolanlawson.com

unread,
Sep 16, 2014, 2:49:08 PM9/16/14
to pou...@googlegroups.com
Yes, and also the environment you're running on. Device, Chrome version, Firefox version, etc.

In fact this sounds like it would be better as a GitHub issue than as a forum post.


On Monday, September 15, 2014 6:50:15 PM UTC-4, Calvin Metcalf wrote:

Code would be very helpful especially a gist, also versions of everything especially pouch, if we can't solve it quickly we can open an issue

On Sep 15, 2014 6:41 PM, "Matt Woodward" <ma...@mattwoodward.com> wrote:
I'm new to PouchDB as of today but have been using CouchDB for a few years now. I decided to give PouchDB a try after working with IndexedDB for a few days on a mobile (PhoneGap/Cordova) project since in theory PouchDB should simplify things vs. using IndexedDB directly.

In general terms what I'm trying to do at this point while getting my feet wet is:
* destroy the database
* create a new empty database
* make ajax call to REST web service
* populate PouchDB with data from REST web service

Obviously I won't do that every time in the final version of the app but it seemed like a good way to get started.

I kinda sorta had things limping along for a while but now I'm consistently getting this error in Chrome:
Uncaught NotFoundError: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found. pouchdb.min.js:7
a pouchdb.min.js:7
D.onupgradeneeded pouchdb.min.js:8

Firefox isn't throwing errors just doing that piece of things, but if I try to do allDocs() on the database, Firefox throws this error:
InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.

And on allDocs() Chrome throws this error:
{"status":500,"name":"error","message":"AbortError"}

I can provide code to help troubleshoot but since I'm so new to PouchDB I thought I'd ask the general question in case I'm just missing something basic like having to manage onupgradeneeded somehow, more explicitly manage transactions, or something along those lines.

Thanks for any assistance anyone can provide. I'm looking forward to working with PouchDB.

--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages