-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
nghia23d/tattooz
#1Description
What / Why
Whenever I have a cache and registry specified in the conf-object, some fetches fail. Its not 100%, but somewhere around 50% of the fetches fail. It only happens if I have both a cache and a registry. I have removed all other configurations.
How
My conf object:
{cache: '/tmp/new-cache', registry: 'my-company-internal-registry'}
My usage of npm-registry-fetch:
const json = (await npmRegistryFetch.json(dependencyName, conf))
Current Behavior
Sometimes I receive this response:
{"code":"FETCH_ERROR","errno":"FETCH_ERROR","type":"invalid-json"}
It never happens unless both registry and cache has been specified. In my testing I have done thousands of fetches and it is very reliable.
I'd be happy to supply more information if needed, or perform testing if it can help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels