CyanC
Denoβ€’14mo agoβ€’
4 replies
Cyan

Error sending request too quick to npm

I'm trying to make create a mirror for about 2000 packages in npm.
For each package, it fetches https://registry.npmjs.org/<package> and the downloads (https://api.npmjs.org/downloads/point/last-month/<package>) with Promise.all()
But there is a few errors while fetching.
Error: connection error received: not a result of an error
        at mainFetch (ext:deno_fetch/26_fetch.js:182:43)
        at eventLoopTick (ext:core/01_core.js:164:35)
        at async fetch (ext:deno_fetch/26_fetch.js:392:7)

TypeError: error sending request from ***.***.***.***:38254 for https://api.npmjs.org/downloads/point/last-month/koishi-plugin-qsign (104.16.0.35:443): client error (SendRequest): http2 error: connection error received: not a result of an error
        at mainFetch (ext:deno_fetch/26_fetch.js:182:11)
        at eventLoopTick (ext:core/01_core.js:164:35)
        at async fetch (ext:deno_fetch/26_fetch.js:392:7)
Was this page helpful?