News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Fix for Connection timeout fetching JavaScript SDK from Git
Tags: getting started
Nov 18, 2015 at 8:38am   •   2 replies  •  0 likes
jim-metzger

I am just getting started setting up a testing environment for working with the RC API. One of the first steps was to get the JavaScript SDK (https://github.com/ringcentral/js-sdk) on my development server. I already have npm and Bower working, so the installation should have been a breeze... I would attempt it and kept getting: github.com[0: 192.30.252.128]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out) After doing some research, I realized that as a normal practice, I pull from Git using the https protocol. Also, using the git protocol requires a port be open on the firewall (tcp/9418, udp/9418). My solution was to inform git to always use the https protocol when it encounters the git protocol. You can set that by adding a global setting to git:

git config --global url."https://".insteadOf git://

You can also manually edit your .gitconfig file to include these two lines:

[url "https://"]          insteadOf = git://

Only downside is that the https protocol is a bit slower than the git protocol. Hope that helps someone. Jim

2 Answers
answered on Nov 18, 2015 at 2:05pm  
Agreed, Ben, on the ssh configuration. I do that as well. And yes, I was in a hurry earlier (normal speed), but I fixed up the firewall. As far as SSL goes, it is becoming more the rule rather than the exception for most web access with folks' privacy concerns. (Warning! Soapbox) I still find, though, so many "broken locks" where the developers don't take the extra effort to make their code base secure. Now it is time for third party code providers to follow suit a bit better. Personally, I am dealing with a large corporation whose "widget" a client wants. While their web site is SSL-secured, they have a "we'll get around to it" attitude about what they want others to put up (which I won't). (End Soapbox) I am very glad that RC supports SSL! Jim

 1
answered on Nov 18, 2015 at 10:19am  
Thanks for the share Jim.

I typically utilize an .ssh/config file which allows me to have multiple sets of keys dedicated to particular services. Then I can just use Github to register those SSH keys. I see your issue if the firewall is blocking the port that 'git' uses.

If you have the ability to add IP rules for your firewall, here is a helpful Stackoverflow issue which says port TCP 9418 is sufficient to open if you want to use the git protocol.

Since port 443 is typically open to nearly every firewall, it can make easier to just use the SSL (https) protocol to save time and headache.

 1



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us