vscode-nuget-package-manager icon indicating copy to clipboard operation
vscode-nuget-package-manager copied to clipboard

Versioning information could not be retrieved from the NuGet package repository. Please try again later.

Open winzig opened this issue 3 years ago • 15 comments

Issue Type: Bug

Lately in vscode I'm receiving this error message:

Versioning information could not be retrieved from the NuGet package repository. Please try again later.

This happens right after I select a nuget package I would like to install through the command-P system of vscode. It seems to happen with every Nuget package I've tried, so I don't think it's a package-specific issue. Googled, but not seeing others complain about this, so figured I'd post here.

Extension version: 1.1.6 VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T11:59:27.195Z) OS version: Darwin x64 20.6.0 Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (8 x 3100)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (1.81GB free)
Process Argv --crash-reporter-id 7fa3914a-6723-4a59-8df2-d01755446466
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthrucf:30370837
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedc:30364665
pythonvspyt187:30373474
pydsgsc2:30361791
vsqsis400:30374798

winzig avatar Sep 30 '21 17:09 winzig

same issue. Extension version: v1.1.6 VS Code version: Code 1.63.2 OS version: Ubuntu 20.04.3 package need to be install: NetTopologySuite

kunlinyu avatar Dec 29 '21 13:12 kunlinyu

I still experience this issue to this day...

winzig avatar Mar 04 '22 20:03 winzig

I've created a PR that I think fixes this issue: https://github.com/jmrog/vscode-nuget-package-manager/pull/49

Basically, lowercases the selectedPackageName in the fetchPackageVersions method. This is based on this stack overflow answer, which did help me resolve the issue locally: https://stackoverflow.com/a/63087568/650558

winzig avatar Mar 04 '22 20:03 winzig

Does @jmrog still monitor this repo?

winzig avatar Mar 04 '22 20:03 winzig

Same not working for me too ...

@winzig any update ?

AlFalahTaieb avatar Apr 15 '22 08:04 AlFalahTaieb

My patch is working fine for me. My pull request hasn't been accepted however.

winzig avatar Apr 15 '22 14:04 winzig

Hi everyone, and apologies to all for the delays. I do not really check or maintain this repo any longer, nor do I use the extension itself. @winzig I will approve and merge the patch, and try to get an updated version released as soon as I can.

jmrog avatar Apr 15 '22 14:04 jmrog

in the meantime, this work around is working: https://stackoverflow.com/questions/58108809/versioning-information-could-not-be-retrieved-from-the-nuget-package-repository

node_fetch_1.default(`${versionsUrl}${selectedPackageName.toLowerCase()}/index.json`

justclint avatar Apr 23 '22 21:04 justclint

thanks the toLowerCase fixes the issue. finally no manually add the packagereference :)

LPDaVinci avatar Apr 29 '22 15:04 LPDaVinci

how much more time should pass for this bug to be fixed?

y0f0 avatar Jul 14 '22 12:07 y0f0

Almost a year later and this issue still exists. Any chance @jmrog can get a new version pushed?

MijanurAli avatar Sep 01 '22 00:09 MijanurAli

+1

asolopovas avatar Feb 20 '23 22:02 asolopovas

+1 The node_fetch_1.default(${versionsUrl}${selectedPackageName.toLowerCase()}/index.json workaround still works thankfully but would nice to get a proper fix please, @jmrog

UmakanthOS avatar Mar 05 '23 21:03 UmakanthOS

2023 apr 14, still bugged.

alexandrenolla avatar Apr 14 '23 23:04 alexandrenolla

Having the same issues I have switched to this extensions: https://github.com/adrian-pavel/visual-nuget

sprudel79 avatar Apr 24 '23 06:04 sprudel79

Having the same issues I have switched to this extensions: https://github.com/adrian-pavel/visual-nuget

THANK YOU!

boeingbus avatar Jul 16 '23 16:07 boeingbus

2024, still bug

RicardoPacheco00 avatar Oct 10 '24 19:10 RicardoPacheco00