So, I'm attempting to make an HTTP request to github to return a list of all the issues on a particular github repository. I'm using coffeescript in my code below but it should be fairly self explanatory for any JS developer. my confusion is that if I enter "https://api.github.com/repos/username/repo-name/issues" into my browser I can retrieve all of the info that I'm looking for. I get an error saying "Missing or invalid User Agent string" when I try to make the request through my application with the request node library. Please let me know if you know how to properly structure a URL to actually retrieve information from the github API.
githubUrl = "https://api.github.com/repos/#{username}/#{repoName}/issues?state=open"
request githubUrl, (error, response, body) ->
console.log body