Mayankaggarwal8055 opened a new pull request, #9185:
URL: https://github.com/apache/pouchdb/pull/9185
**Fixes #9165**
HTTP 413 (Content Too Large) from CouchDB `_bulk_docs` during live
replication was silently retried via `backOff()` instead of surfacing through
`paused(err)` events as users expect.
**Solution**: In `completeReplication()`, treat 413 as fatal - emit
`paused(error)` + `error(error)` and stop retrying.
**Changes**:
```diff
+ } else if (fatalError.status === 413) {
+ returnValue.emit('paused', fatalError);
+ returnValue.emit('error', fatalError);
+ returnValue.removeAllListeners();
+ } else {
backOff(opts, returnValue, fatalError, function () {
replicate(src, target, opts, returnValue);
});
--
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]