These are chat archives for request/request

Jun 2015
Jun 23 2015 01:12
@Jonahss I had a look on source of request(), and it seems like when uri is type of string request() executes url.parse on it ( but if uri is object it won't try to parse it, so if you want you probably can pass object as uri that will be compatible with what url.parse returns. But I don't really know if there is point of doing so if everything is working.
Oh, and if you set baseUrl, uri has to be string, so if you want to pass object you mustn't specify baseUrl
AJ Villalobos
Jun 23 2015 06:24
hello guys, I'm learning node/express and currently I'm making an api proxy for slack, when I used request, it doesn't returns the result of the call, but the call itself. Here's my code.
app.get('/slack', function (req, res) {
  var url = "";
  var users = request.get(url, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      return body;
Jun 23 2015 07:31
put res.json(users); inside the callback
Ivan Goncharov
Jun 23 2015 13:27
Hi. I'm trying to download some files from many different links.
Some of HTTPS request throw error: Error: unable to verify the first certificate
But my browser show that link is valid, for example
I can set strictSSL to false but this will severely compromise security.
I'm using node v0.12.4 and latest request.
Jun 23 2015 21:17
@Mr-KoKa yeah yup. Was looking at that too. Maybe it worked in a previous version..... or my memory is faulty. Thanks for the response