jonkemp / jonkemp/inline-css

Error: read ECONNRESET when use quite big css file and many attempts in same time

Open
#112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
438
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hi maintainers, this is the log for the error

![image](https://user-images.githubusercontent.com/16976343/155511088-81340a68-416d-4829-807e-a654045676ac.png)

as information for the external css file, I use Bootstrap CSS. I use code that similar with written in docs
```
InlineCss(htmlEmail, options).then((html) => {
console.log(html)
}).catch((error) => {
console.warn("INLINE STYLES ERROR");
console.warn(error);
});
```

The error always comes when many attempts in same time. But when I remove that refer to Bootstrap CSS file, the error disappears with same case.
Is anyone ever face the same issue? Also, Is it true the issue is caused by use of css files that are quite big?

Thanks guys

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.