With Hubot I am trying to access specific issues through JIRA REST api.
url = http://myserver.com/jira/rest/api/2/search?jql=status="open"+AND+assignee=null
robot.http(url).get() (err, res, body) ->
# some code
Hubot fails to reach the server. Proxies are all set properly. The REST api works as expected through the browser once logged in.
Thus I need to specify authentication.
What I tried so far (plain basic authentication):
robot.http(url).auth('user', 'pass'). ...
robot.http(url).header('Authentication', 'user:password'). ...
robot.http('http://user:password@someurl'). ...
Hubot keeps telling me that the server was not found. How do I properly pass authentication through http?