Media download issues
See original GitHub issueBeen wrestling with this for a few weeks, but I can’t seem to get this budging. Whenever i try to build / develop from my cleaned project, i always get hit by this error for many (not all) of the image files:
gatsby-source-wordpress Fetching https://cms.me.com/wp-content/uploads/20
19/09/image.png is taking a long time time (longer
than 15 seconds). This file is 6.85 MB
RequestError: Timeout awaiting 'request' for 30000ms
at ClientRequest.<anonymous>
(/Users/me/Repositories/me.com/node_modules/gatsby-source-wordpre
ss-experimental/node_modules/got/dist/source/core/index.js:953:65)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.origin.emit (/Users/me/Repositories/me.com/n
ode_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
at Timeout.timeoutHandler [as _onTimeout]
(/Users/me/Repositories/me.com/node_modules/gatsby-source-wordpre
ss-experimental/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
at listOnTimeout (internal/timers.js:556:17)
at processTimers (internal/timers.js:497:7) {
name: 'TimeoutError',
code: 'ETIMEDOUT',
timings: {
start: 1612140972803,
socket: 1612140972803,
lookup: 1612140972804,
connect: 1612140972886,
secureConnect: 1612140973028,
upload: 1612140973028,
response: 1612140973105,
end: undefined,
error: 1612141002803,
abort: 1612141002803,
phases: {
wait: 0,
dns: 1,
tcp: 82,
tls: 142,
request: 0,
firstByte: 77,
download: undefined,
total: 30000
}
},
event: 'request'
}
i’ve tried killing the request concurrency using:
{
resolve: `gatsby-source-wordpress-experimental`,
options: {
url: `https://cms.me.com/graphql`,
schema: {
requestConcurrency: 1
},
}
},
but i’m not even sure the plugin is even listening to that config as it’s flying through trying to download the images. that said, the wordpress instance is running on a super fast VPS and shouldn’t have any issues with the transfer. Additionally, this wordpress instance was working perfectly with a previous gatsbyjs build… so i’m out of ideas. libraries are all updated etc.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:19 (4 by maintainers)
Top Results From Across the Web
WhatsApp Images and Media Not Downloading? Here's Why ...
If you are having trouble downloading images and videos on WhatsApp, use these troubleshooting tips to fix the problem.
Read more >WhatsApp Media Not Downloading? Here's How to Fix It
Potential Fixes for the WhatsApp Media Not Downloading Problem · 1. Check Your Internet Connection · 2. Force Close WhatsApp · 3. Check...
Read more >WhatsApp Images and Videos Not Downloading Issues Fixed
WhatsApp users have reported problems downloading media. Here we give you fixes for the WhatsApp images and videos not downloading issue.
Read more >Troubleshoot Guide downloading problems in Windows ...
Here are solutions to some common problems you might encounter when downloading Guide information in Windows Media Center.
Read more >WhatsApp Not Downloading Media and Documents? 13 Ways ...
This tutorial covers troubleshooting fixes to try if WhatsApp won't download pictures, videos, or documents from individual and group ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
updated all libraries, tried the usual
gatsby build
andgatsby develop
as a baseline and they were still failing, but if i runGATSBY_CONCURRENT_DOWNLOAD=5 gatsby build
andGATSBY_CONCURRENT_DOWNLOAD=5 gatsby develop
the file download errors go away. Yay!I was sure somewhere in my troubleshooting in the past i tried that approach, but maybe that was some other variable or there was a change somewhere.
I can confirm that adding
GATSBY_CONCURRENT_DOWNLOAD=5
variable solves the issue. Thank you!