your problem likely has to do with github api requirements. print out uri.toString() and see if you can get what you are looking for using curl or browser. In particular, if curl works, try "curl -v" to see what headers are sent, you may have to set the user-agent header.