I\'m using request package and add timeout for it:
request.get(link, { headers: { \'Content-type\': \'application/json\' }, timeout, }, (error, resp