pcislo / vscode-nuget-gallery

MIT License
64 stars 20 forks source link

Failed to fetch packages: Nuget urls couldn't be fetched #134

Open IlhamHFZ opened 1 month ago

IlhamHFZ commented 1 month ago

when i want to open nuget gallery. it can't display anything except error message like "Failed to fetch package. See 'WebView Developer Tools' for more details"

pcislo commented 1 month ago

Please include logs from WebView Developer Tools

IlhamHFZ commented 1 month ago

sorry i didn't include it because i'm very new to this kind of thing. the web developer tool log that appears looks like this

log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackagesAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29279:5)
    at async GetPackages.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29494:22)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackagesAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29279:5)
    at async GetPackages.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29494:22)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch packages: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at listOnTimeout (node:internal/timers:540:9)
    at process.processTimers (node:internal/timers:514:7)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at listOnTimeout (node:internal/timers:540:9)
    at process.processTimers (node:internal/timers:514:7)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439   ERR [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
console.ts:137 [Extension Host] TypeError: Cannot read properties of undefined (reading 'resources')
    at NuGetApi.GetUrlFromNugetDefinition (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29415:34)
    at NuGetApi.EnsureSearchUrl (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29395:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NuGetApi.GetPackageAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:29311:5)
    at async GetPackage.HandleAsync (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:33665:27)
    at async Mediator.HandleRequest (/home/zdifah/.vscode/extensions/patcx.vscode-nuget-gallery-1.2.1/dist/extension.js:26135:20)
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host]% {message: "Nuget urls couldn't be fetched"} undefined
C @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
notificationsAlerts.ts:42 Failed to fetch package: Nuget urls couldn't be fetched
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
pcislo commented 1 month ago

Is it your custom nuget source or https://api.nuget.org/v3/index.json ?

IlhamHFZ commented 1 month ago

I didn't implement any custom nuget source. I didn't make any setting changes to this extension. Screenshot from 2024-09-18 22-48-15 I did a reinstall but it didn't work. For additional information, I'm using Ubuntu 24.04, .Net SDK 8.0.400

pcislo commented 1 month ago

Could you please open this url: https://api.nuget.org/v3/index.json in the browser and paste the response here?

IlhamHFZ commented 1 month ago

this is the content of index.json. is there anything missing or different?

{
    "version": "3.0.0",
    "resources": [
        {
            "@id": "https://azuresearch-usnc.nuget.org/query",
            "@type": "SearchQueryService",
            "comment": "Query endpoint of NuGet Search service (primary)"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/query",
            "@type": "SearchQueryService",
            "comment": "Query endpoint of NuGet Search service (secondary)"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService",
            "comment": "Autocomplete endpoint of NuGet Search service (primary)"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService",
            "comment": "Autocomplete endpoint of NuGet Search service (secondary)"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/",
            "@type": "SearchGalleryQueryService/3.0.0-rc",
            "comment": "Azure Website based Search Service used by Gallery (primary)"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/",
            "@type": "SearchGalleryQueryService/3.0.0-rc",
            "comment": "Azure Website based Search Service used by Gallery (secondary)"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-semver1/",
            "@type": "RegistrationsBaseUrl",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored"
        },
        {
            "@id": "https://api.nuget.org/v3-flatcontainer/",
            "@type": "PackageBaseAddress/3.0.0",
            "comment": "Base URL of where NuGet packages are stored, in the format https://api.nuget.org/v3-flatcontainer/{id-lower}/{version-lower}/{id-lower}.{version-lower}.nupkg"
        },
        {
            "@id": "https://www.nuget.org/api/v2",
            "@type": "LegacyGallery"
        },
        {
            "@id": "https://www.nuget.org/api/v2",
            "@type": "LegacyGallery/2.0.0"
        },
        {
            "@id": "https://www.nuget.org/api/v2/package",
            "@type": "PackagePublish/2.0.0"
        },
        {
            "@id": "https://www.nuget.org/api/v2/symbolpackage",
            "@type": "SymbolPackagePublish/4.9.0",
            "comment": "The gallery symbol publish endpoint."
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/query",
            "@type": "SearchQueryService/3.0.0-rc",
            "comment": "Query endpoint of NuGet Search service (primary) used by RC clients"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/query",
            "@type": "SearchQueryService/3.0.0-rc",
            "comment": "Query endpoint of NuGet Search service (secondary) used by RC clients"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/query",
            "@type": "SearchQueryService/3.5.0",
            "comment": "Query endpoint of NuGet Search service (primary) that supports package type filtering"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/query",
            "@type": "SearchQueryService/3.5.0",
            "comment": "Query endpoint of NuGet Search service (secondary) that supports package type filtering"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.0.0-rc",
            "comment": "Autocomplete endpoint of NuGet Search service (primary) used by RC clients"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.0.0-rc",
            "comment": "Autocomplete endpoint of NuGet Search service (secondary) used by RC clients"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.5.0",
            "comment": "Autocomplete endpoint of NuGet Search service (primary) that supports package type filtering"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.5.0",
            "comment": "Autocomplete endpoint of NuGet Search service (secondary) that supports package type filtering"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-semver1/",
            "@type": "RegistrationsBaseUrl/3.0.0-rc",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored used by RC clients. This base URL does not include SemVer 2.0.0 packages."
        },
        {
            "@id": "https://www.nuget.org/packages/{id}/{version}/ReportAbuse",
            "@type": "ReportAbuseUriTemplate/3.0.0-rc",
            "comment": "URI template used by NuGet Client to construct Report Abuse URL for packages used by RC clients"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-semver1/{id-lower}/index.json",
            "@type": "PackageDisplayMetadataUriTemplate/3.0.0-rc",
            "comment": "URI template used by NuGet Client to construct display metadata for Packages using ID"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-semver1/{id-lower}/{version-lower}.json",
            "@type": "PackageVersionDisplayMetadataUriTemplate/3.0.0-rc",
            "comment": "URI template used by NuGet Client to construct display metadata for Packages using ID, Version"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/query",
            "@type": "SearchQueryService/3.0.0-beta",
            "comment": "Query endpoint of NuGet Search service (primary) used by beta clients"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/query",
            "@type": "SearchQueryService/3.0.0-beta",
            "comment": "Query endpoint of NuGet Search service (secondary) used by beta clients"
        },
        {
            "@id": "https://azuresearch-usnc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.0.0-beta",
            "comment": "Autocomplete endpoint of NuGet Search service (primary) used by beta clients"
        },
        {
            "@id": "https://azuresearch-ussc.nuget.org/autocomplete",
            "@type": "SearchAutocompleteService/3.0.0-beta",
            "comment": "Autocomplete endpoint of NuGet Search service (secondary) used by beta clients"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-semver1/",
            "@type": "RegistrationsBaseUrl/3.0.0-beta",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored used by Beta clients. This base URL does not include SemVer 2.0.0 packages."
        },
        {
            "@id": "https://www.nuget.org/packages/{id}/{version}/ReportAbuse",
            "@type": "ReportAbuseUriTemplate/3.0.0-beta",
            "comment": "URI template used by NuGet Client to construct Report Abuse URL for packages"
        },
        {
            "@id": "https://www.nuget.org/packages/{id}/{version}?_src=template",
            "@type": "PackageDetailsUriTemplate/5.1.0",
            "comment": "URI template used by NuGet Client to construct details URL for packages"
        },
        {
            "@id": "https://www.nuget.org/profiles/{owner}?_src=template",
            "@type": "OwnerDetailsUriTemplate/6.11.0",
            "comment": "URI template used by NuGet Client to construct owner URL for packages"
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-gz-semver1/",
            "@type": "RegistrationsBaseUrl/3.4.0",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored in GZIP format. This base URL does not include SemVer 2.0.0 packages."
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-gz-semver2/",
            "@type": "RegistrationsBaseUrl/3.6.0",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored in GZIP format. This base URL includes SemVer 2.0.0 packages."
        },
        {
            "@id": "https://api.nuget.org/v3/registration5-gz-semver2/",
            "@type": "RegistrationsBaseUrl/Versioned",
            "clientVersion": "4.3.0-alpha",
            "comment": "Base URL of Azure storage where NuGet package registration info is stored in GZIP format. This base URL includes SemVer 2.0.0 packages."
        },
        {
            "@id": "https://api.nuget.org/v3-index/repository-signatures/4.7.0/index.json",
            "@type": "RepositorySignatures/4.7.0",
            "comment": "The endpoint for discovering information about this package source's repository signatures."
        },
        {
            "@id": "https://api.nuget.org/v3-index/repository-signatures/5.0.0/index.json",
            "@type": "RepositorySignatures/5.0.0",
            "comment": "The endpoint for discovering information about this package source's repository signatures."
        },
        {
            "@id": "https://api.nuget.org/v3/vulnerabilities/index.json",
            "@type": "VulnerabilityInfo/6.7.0",
            "comment": "The endpoint for discovering information about vulnerabilities of packages in this package source."
        },
        {
            "@id": "https://api.nuget.org/v3/catalog0/index.json",
            "@type": "Catalog/3.0.0",
            "comment": "Index of the NuGet package catalog."
        }
    ],
    "@context": {
        "@vocab": "http://schema.nuget.org/services#",
        "comment": "http://www.w3.org/2000/01/rdf-schema#comment"
    }
}
pcislo commented 1 month ago

It's exactly how it should be, there is a property 'resources' that was mentioned in the error. It seems like the request invoked in VsCode for some reason is not getting the correct result, but I don't know why.