pouchdb-community / worker-pouch

Easy way to use PouchDB inside a Web Worker or Service Worker
Apache License 2.0
218 stars 34 forks source link

Error while making a .find query with index created #51

Open MurthyAvanithsa opened 6 years ago

MurthyAvanithsa commented 6 years ago

I have an application which uses worker-pouch I have an index on a key called "docType", worker-pouch throws an error while calling db.find()

{error: "not_found", name: "not_found", reason: "ddoc _design/idx-f69ab836cb594ee7fe57e44b2d3c4267 …44b2d3c4267, instead found object of type: object", message: "ddoc _design/idx-f69ab836cb594ee7fe57e44b2d3c4267 …44b2d3c4267, instead found object of type: object", status: 404}

ghost commented 6 years ago

I have a similar problem. Are the indices not considered by worker-pouch? If I use pouch directly without worker-pouch I don't have this issue.

caschbre commented 5 years ago

Ditto. Having the same problem with worker-pouch and db.find.

sohrabtaee commented 5 years ago

Same problem here :(

Delink-D commented 4 years ago

Has anyone cracked the error? I am experiencing the same error.

dharmeshds commented 3 years ago

It's been 2 years since reported! any solution? I face the issue with worker-pouch and pouchdb find..

Delink-D commented 2 years ago

2022 and worker-pouch is not working with indices.. How can I use worker-pouch and indices?

kernelwhisperer commented 10 months ago

This is a blocker for me right now, I will try to upgrading the dependencies and will report back.

@nolanlawson any sort of info would be highly appreciated! 🙏

Edit: this did not work, I tried with both version 7 and 8.

I ended up using comlink and moved all functions that use the database in a worker.

ishaiavrahami commented 4 months ago

Still facing this, any fix??