-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot update NPM catalog - refresh failed #99
Comments
Excellent hint & quick reaction, but: just tried https://registry.npmjs.org/-/all from the browser, shows complete catalog. After that, tried again from NTVS 1.0 plugged in VS 2013 and got the same error, 503. I wonder if NTVS correctly calls this link. Last time my catalog was successfully updated was 1st Dec 2014, it was on NTVS RC - maybe some bug introduced in ver 1.0? |
Interesting. It works for me with the latest bits, and we haven't made many changes to npm catalog downloading since RC on Nov 24. The only change we made that would have affected it would produce a 404 if something were to go wrong... not a 503. Did you make any network-related changes recently? Otherwise, try this:
|
OK, I've found a workaround. Go to folder:
|
Commenting race condition 😃 Any chance that folder you just deleted is in your recycle bin? |
Well, I moved it away - anything particular I have to look at? Or I can zip it and make available for you. |
Yeah, zipped up would be great |
I need to run it through the debugger/fiddler to figure out the relative url it's trying to hit, and why it's unavailable. Because even if startkey is set wrong, you'll get a 400, not a 503, so something's not adding up. |
It is ready for you: |
Np, glad you got it all sorted out. Download successful, thank you! Enjoy 1.0 😃 |
I had the same problem. VS 2013 and NTVS.Dev.2015-08-04.VS.2013 installed. It installs catalog but after install it just gets stuck in update database phase. Let me know if you need zipped NpmCache folder. My last update was on around 20.08.2015 and after that it tried to download a 15Mb catalog update. Deleting folder and download/remake catalog (103 Mb) solved this problem for me. |
I fixed this in the pull request for #398. We'll be pushing out a build shortly with the issue addressed. |
well this issue was on 2015, just today installed the node 6.9.4 from https://nodejs.org/en/ and trying to add the package from my fresh installed visual studio 2017 and had the same issue... had to follow the workaround from asuchac commented on 6 May 2015 and got it working so, they didnt manage to fix it |
Using NTVS 1.0.
I clicked 'Refresh' button in window 'Install New npm packages'. After some time, I got error message 'Refresh failed - see output'. Same error repeatedly. Here is npm install output:
Registry url: https://registry.npmjs.org/
Current Time: 06/05/2015 3:11:14 PM
Last Refreshed: 02/12/2014 9:52:36 AM
Number of Results: 115506
Registry url: https://registry.npmjs.org/
Path to npm: C:\Program Files\nodejs\npm.cmd
Downloading package cache to C:\Users\ales\AppData\Local\Microsoft\Node.js Tools\NpmCache\2fa5acfe-4767-4521-9f96-02363f57ec13\since_packages.json
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__5a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__3f.MoveNext()
Download or parsing failed - deleting C:\Users\ales\AppData\Local\Microsoft\Node.js Tools\NpmCache. Try refreshing the catalog again. Otherwise restart Visual Studio, and try again.
Deleting 2fa5acfe-4767-4521-9f96-02363f57ec13
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__5a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmGetCatalogCommand.d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.NodejsTools.Npm.SPI.NpmCommander.d__0.MoveNext()
The text was updated successfully, but these errors were encountered: