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

Invalid String Length #473

Open
jasondalycan opened this issue May 15, 2023 · 0 comments
Open

Invalid String Length #473

jasondalycan opened this issue May 15, 2023 · 0 comments

Comments

@jasondalycan
Copy link

Issue

When running a Mango query that returns a large dataset the following error is returned:

RangeError: Invalid string length.

This error is on line 212 of utils.js and occurs when JSON.stringify() is executed against a large JSON object.

Info

  • Environment: Node.js (via
  • Platform: Debian Bullseye
  • Adapter: leveldb
  • Server: PouchDB

Reproduce

To reproduce the issue, run the following query against a database that will return a very large JSON result:
let result = await mydb.find({selector: {"field1": "veryCommonValue"}});

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

1 participant