Can not download Libraries from TypeScript community stubs

Trying to to download libraries but i get the answer:
Can not download from https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery/jquery.d.ts handshake alert:  unrecognized_name
Can not download from https://github.com/borisyankov/DefinitelyTyped/raw/master/mustache/mustache.d.ts. handshake alert:  unrecognized_name

I´m not behind any proxy, and of course I have an internet connections.
I dont think I´m an idiot.

2 comments
Comment actions Permalink

I had this recently it is because of a change that has been made in Java 7 it introduced the SNI support which is enabled by default.

The answer can be found from a question asked over at SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0 - Stack Overflow, here is the short version for windows, however the .vmoptions files should exist on other installation as well.:

1. find the WebStorm.exe.vmoptions file which is located in the installation directory where the WebStorm.exe file, it will contains something like this

-server

-Xms128m

-Xmx512m

-XX:MaxPermSize=250m

-XX:ReservedCodeCacheSize=64m

-ea

-Dsun.io.useCanonCaches=false

-Djava.net.preferIPv4Stack=true

-XX:+UseCodeCacheFlushing

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

2. using your local text editor add the line to the end of the file.

-Djsse.enableSNIExtension=false


3. Save the file and restart webstorm.


4. Try TypeScript community stub download again.


Should you not have Java 7 this might not be your problem but it fixed mine.


Hope this works for you too.
0
Comment actions Permalink

Rupert Thanks for your answer but it didn´t work for my system. The issue is still there.
Regards

0

Please sign in to leave a comment.