Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read: ECONNRESET #26

Closed
SeryiBaran opened this issue Apr 3, 2023 · 8 comments
Closed

read: ECONNRESET #26

SeryiBaran opened this issue Apr 3, 2023 · 8 comments

Comments

@SeryiBaran
Copy link

SeryiBaran commented Apr 3, 2023

Hello!

Sometimes there is a read: ECONNRESET error, what should I do?

Pastebin with logs:
https://pastebin.com/S7DWSZ9P

Url is correct.

No config, google fonts included via link:css (variant a from readme).

@0xb4lint
Copy link
Member

0xb4lint commented Apr 3, 2023

Hi @SeryiBaran!

ECONNRESET means some communication issue happened between the server and the client.

What happens if you run the build again? Or if you open https://fonts.gstatic.com/s/opensans/v34/memQYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWq8tWZ0Pw86hd0Rk_RkWVAewA.woff2 in your browser?

I'll try to make these error messages more declarative and maybe create some retry functionality.

@SeryiBaran
Copy link
Author

What happens if you run the build again?

Error occurs again

What happens if you run the build again? Or if you open https://fonts.gstatic.com/s/opensans/v34/memQYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWq8tWZ0Pw86hd0Rk_RkWVAewA.woff2 in your browser?

The browser downloads the file

@SeryiBaran
Copy link
Author

SeryiBaran commented Apr 3, 2023

Hmm, I'm restart build again and all works without errors 🤯

In any case, thanks for your response!

@0xb4lint
Copy link
Member

0xb4lint commented Apr 3, 2023

It could be related to your network, your router, your ISP, or some IP restriction / traffic shaping from the server.

@0xb4lint 0xb4lint closed this as completed Apr 3, 2023
@SeryiBaran
Copy link
Author

Maybe due to the fact that a lot of files are downloading in one time?

If you run build many times (it turns out that the fonts are downloaded in pieces), the error disappears

@0xb4lint
Copy link
Member

0xb4lint commented Apr 3, 2023

That could be an issue!
I'm working on some retry with a random waiting time downloading mechanism.

@0xb4lint 0xb4lint reopened this Apr 3, 2023
@0xb4lint
Copy link
Member

0xb4lint commented Apr 3, 2023

@SeryiBaran could you please try out version 3.7.0-beta.0? it has some detailed logging and retry on error functionality

@SeryiBaran
Copy link
Author

SeryiBaran commented Apr 3, 2023

Fonts loads successfully after several attempts, thank you!

https://pastebin.com/T1KXuTdN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants