Cannot download any community Javascript libraries due to status 307 error
Get an error dialog when downloading community Javascript libraries in IntelliJ IDEA (v 2017.1.5):
Cannot download https://github.com/DefinitelyTyped/DefinitelyTyped/raw/master/types/mocha/index.d.ts. Cannot download 'https://github.com/DefinitelyTyped/DefinitelyTyped/raw/master/types/mocha/index.d.ts': Status: 307
This happens for any library. Looks like the URL handler doesn't understand the 307 redirect HTTP status, but could be something else i suppose. The URL redirects just fine and shows the file contents when I try it in a browser.
As a work-around is there somewhere on my Mac I can put the manually downloaded files so IntelliJ IDEA can find them? OR some other approach togetting them installed? Thanks much.
Please sign in to leave a comment.
Please provide more details on how you download the libraries as well as screenshots of the error.
I followed the directions in the on-line documentation: https://www.jetbrains.com/help/webstorm/configuring-javascript-libraries.html#d28399e278
I just tried to repeat it now to take a screen shot, but it worked fine this time. I don't know why it was failing yesterday and working today, but I hope it keeps working. :-) I don't know if you did anything, or if something changed on our end, but thanks very much for your attention. I'll update here if I encounter any further problems. Thanks again.
Cheers!
I'm glad it worked. No magic from my part :)