joelspadin-garmin / vscode-private-extension-manager

Private extension manager for Visual Studio Code
103 stars 22 forks source link

Cannot read property 'defaultEncoding' of undefined #60

Open sleeperss opened 3 years ago

sleeperss commented 3 years ago

Fetching extension updates leads to this error after Code reload (Loading spinner spinning forever).

Console log : [2021-09-16 00:36:34.462] [renderer1] [error] Cannot read property 'defaultEncoding' of undefined: TypeError: Cannot read property 'defaultEncoding' of undefined at v.Writable.write (internal/streams/writable.js:266:24) at Transform.ondata (internal/streams/readable.js:719:22) at Transform.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Transform.Readable.push (internal/streams/readable.js:223:10) at Transform.push (internal/streams/transform.js:166:32) at Transform.afterTransform (internal/streams/transform.js:101:10) at Transform.transform [as _transform] (/home/agarcin/.vscode-server/extensions/garmin.private-extension-manager-1.7.0/dist/extension.js:4:610389) at Transform._read (internal/streams/transform.js:205:10) at Transform.write (internal/streams/transform.js:193:12) at writeOrBuffer (internal/streams/writable.js:358:12) at Transform.Writable.write (internal/streams/writable.js:303:10) at PassThrough.ondata (internal/streams/readable.js:719:22) at PassThrough.emit (events.js:315:20) at PassThrough.Readable.read (internal/streams/readable.js:519:10) at flow (internal/streams/readable.js:992:34) at resume (internal/streams/readable.js:973:3) at processTicksAndRejections (internal/process/task_queues.js:80:21)

Configuration (Verdaccio):
{
// This file configures the private extension manager for users of this workspace.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of NPM registries containing private extensions.
// Each item should have a "name", a "registry" URL, and optionally a "query" to
// filter which extensions are shown.
// See https://www.npmjs.com/package/npm-registry-fetch#fetch-opts for extra
// options including authentication.
"registries": [
  {
     "name": "titan",
     "registry": "http://18.50.2.0:1234"
     "query": "",
],
// List of private extensions which should be recommended for users of this workspace.
"recommendations": [
    "spadin.memento-inputs"
]

}

Whats strange is that, everything is working fine on a fresh install of the extension, May be a cache issue ?

thanks