Socket Hang Up Error

While downloading Advantage Kit from Mechanical Advantage’s github repository, we are getting a socket hang up error. While browsing for it, it seems that nobody has gotten this error before. Take a look at the attached screenshot.

The Url we used was : https://github.com/Mechanical-Advantage/AdvantageKit/releases/latest/download/AdvantageKit.json

image

Are u doing this at school? There error seems to indicate that the connection to GitHub was interrupted. If at a school, they could be blocking it.

1 Like

Yes, we did this at school. The computers at our computer lab have Github unblocked and we were able to use the little ton robotics vendor library for past robots making this an intermittent error. This only happens with AdvantageKit and none of the other libraries and we are guessing that is because the url has Github in it.

might be worth trying it over a non-school network, or cellular. otherwise, try the offline install

We have tried connecting to our personal hotspots, as well as wired ethernet, but the error persists. We think it might be related to some kind of firewall, but this only happens with this URL. We might have to resort to using the offline install, but we are wondering if there is a fix for the online install version.

its probably a firewall. github may be unblocked sure, but their associated hosts (including the one that is causing the error, objects.githubusercontent.com) may not be. youll likely either have to do the offline install or take it up with IT to solve this issue

Is this on a school computer? Even if using a hot spot it could still be blocked

We are using an Acer that was given to us through the school. It probably has the school’s firewall installed on it. Other than that, it belongs to us.

1 Like

It’s worth trying to get rid of the firewall if school will allow it. You will want admin rights on the computer in any case, and it won’t be a good driver station even if they install the admin stuff on it for you.

Okay we will try that. If school does not allow it then what should we do in order to fix the problem? There has to be another way to fix it.

You can just grab the JSON file manually, and put it in the vendordeps folder in your project.

Since AdvantageKit’s maven is also on github, that may not be enough.

We did try copying the JSON file into the vendordepd folder, but it didn’t work. We have AdvantageKit on the robot code for last year’s robot, and that works fine, so we copied the AdvantageKit.json file from that project into the robot code of our other project, but we still were getting build errors and import errors. As for the computer, it’s an Asus that has admin permissions on it, but the firewall still exists. The offline install could work, but we aren’t sure how it differs from the online install, and we want a fix to the online install, if possible.

If you have admin permissions, turn off the firewall and retry the regular installation. You will also want to turn it off while you are at an event.

I don’t think our system works like that, because we can’t disable the firewall since that’s something put in place by the district for all devices, even admin registered ones.

Generally speaking, if you have the administrator credentials on a Windows machine, you should be able to disable the firewall(s). It’s worth trying to explain things to the school IT staff to see if they can give you a machine without the extra things schools put on them, but sometimes there are policies and you can’t get an exemption. If they gave you administrator rights on the machine, you might be able to make things work. But the exact steps depend on what they have installed.

If you do have a machine that has extra things installed on it by a school and you don’t have administrator credentials, it could cause other problems, including at competitions. Some teams resort to using a personal machine to avoid this problem – but some schools might have policies against this or not let then onto their network. Again, it depends on the specifics.