Found the problem, the API server does not have a fix address meaning that the constructed URL is refereing to github.com which does not have a server running