[js] Correct error code check for retrying
@@ -296,7 +296,7 @@ function isRetryableNetworkError(err) {
err.code === 'ECONNRESET' ||
err.code === 'ECONNREFUSED' ||
err.code === 'EADDRINUSE' ||
- err.code === 'EPIPE',
+ err.code === 'EPIPE' ||
err.code === 'ETIMEDOUT';
}
