alxndrsn commented on issue #9111:
URL: https://github.com/apache/pouchdb/issues/9111#issuecomment-3556117044
I can create data which will throw `RangeError: Invalid string length` like
so:
```js
> a = []; for(let i=0; i<10000; ++i) { const v = []; a.push(v); for(j=0;
j<10000; ++j) v.push(Math.random()); } JSON.stringify(a)
Uncaught RangeError: Invalid string length
at JSON.stringify (<anonymous>)
```
Knowing exactly where/how to feed that into PouchDB would be helpful 🙂
> The solution was to reduce the batch size so that the payload of one
request was much smaller.
There will probably be an edge case where the batch size is 1, and a single
document can trigger `RangeError: Invalid string length`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]