You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When server side drops connection mid-response backup stops on the last valid batch and exits with 0 without calling on.('finished') function.
The root cause is a bug in axios 0.x where client quietly drops response without raising 'connection abort' exception when response is compressed. e.g. header Accept-Encoding set to gzip or *.
This bug fixed in axios 1.x, but unfortunately we'd need for sdk-core to move on it first, then release new cloudant-sdk and only then get this fix in backup, which potentially looks like quite long wait.
Alternative approach could be to try to switch only backup to axios 1.x and force core to work with it, though this sounds like a typical node deps' hell.
Another alternative could be to detect and raise this condition in cloudant-sdk BaseService with axios response interceptor or event listener on a custom Agent. However this requires a spike to investigate how feasible it is.
The text was updated successfully, but these errors were encountered:
Based on the progress over the last week I think the best course of action here is to wait for the axios 1.2.0 1.2.1 release and subsequent merge of IBM/node-sdk-core#217 and consume those updated deps in cloudant-node-sdk and then here.
When server side drops connection mid-response backup stops on the last valid batch and exits with 0 without calling
on.('finished')
function.The root cause is a bug in axios 0.x where client quietly drops response without raising 'connection abort' exception when response is compressed. e.g. header
Accept-Encoding
set togzip
or*
.This bug fixed in axios 1.x, but unfortunately we'd need for sdk-core to move on it first, then release new cloudant-sdk and only then get this fix in backup, which potentially looks like quite long wait.
Alternative approach could be to try to switch only backup to axios 1.x and force core to work with it, though this sounds like a typical node deps' hell.
Another alternative could be to detect and raise this condition in cloudant-sdk BaseService with axios response interceptor or event listener on a custom Agent. However this requires a spike to investigate how feasible it is.
The text was updated successfully, but these errors were encountered: