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

fix: limit static download concurrency #217

Merged
merged 2 commits into from
Apr 19, 2021
Merged

fix: limit static download concurrency #217

merged 2 commits into from
Apr 19, 2021

Conversation

jdempster
Copy link
Contributor

Resolve error

ERROR request to http://localhost:57016/_ipx/example.webp?w=768&f=webp failed, reason: connect ECONNRESET 127.0.0.1:57016 @nuxt/image 18:04:53

Happens during generate when there are a lot of images in your project, they all make requests to ipx.
The fix here uses pLimit to limit the number of concurrent requests to 5.

Resolve error ERROR  request to http://localhost:57016/_ipx/example.webp?w=768&f=webp failed, reason: connect ECONNRESET 127.0.0.1:57016                 @nuxt/image 18:04:53
src/generate.ts Outdated Show resolved Hide resolved
@pi0 pi0 changed the title Fix issue trying to download too many images at the same time fix: limit static download concurrency Apr 19, 2021
@pi0 pi0 linked an issue Apr 19, 2021 that may be closed by this pull request
@pi0 pi0 merged commit bb4af1a into nuxt:main Apr 19, 2021
@pi0
Copy link
Member

pi0 commented Apr 19, 2021

Thanks!

@Skrapion
Copy link

I'm using this fix successfully on 0.0.4 (until placeholders come back!). Anyone who needs it can update their package.json to:

"dependencies": {
        "@nuxt/image": "github:skrapion/image#oldfix"
}

procrates pushed a commit to procrates/nuxt-image that referenced this pull request Feb 21, 2023
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

Successfully merging this pull request may close these issues.

Socket hang up
3 participants