Skip to content

Invalid String Length #473

@ep5000

Description

@ep5000

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"}});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions