Skip to content
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

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

Open
MurthyAvanithsa opened this issue Jul 26, 2018 · 8 comments
Open

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

MurthyAvanithsa opened this issue Jul 26, 2018 · 8 comments

Comments

@MurthyAvanithsa
Copy link

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
Copy link

ghost commented Jul 26, 2018

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
Copy link

caschbre commented Apr 3, 2019

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

@sohrabtaee
Copy link

Same problem here :(

@Delink-D
Copy link

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

@dharmeshds
Copy link

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

@Delink-D
Copy link

Delink-D commented Aug 16, 2022

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

@kernelwhisperer
Copy link

kernelwhisperer commented Dec 12, 2023

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
Copy link

Still facing this, any fix??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants