I was trying to GET a binary data using request, and had something like:  var requestSettings = {     method: 'GET',     url: url, }; request(requestSettings, function(error, response, body) {     // Use body as a binary Buffer }   But body...
I have been using karma+requestjs + mocha + chai and sinon. i have been using chai-http module yet receives chai.request is not a function.please suggest where i am making mistake i have googled lot no luck yet.   (function() {   var specFiles = null...
I have a async.each that iterates an array and for every element inside the array it execute a function "check" that has a request inside. This is the code but when I run it I see from the debugger that node doesn't execute the check func...
We are trying to call a JSON based API using requestjs, but we're getting an error from the server.  request.get({             url: 'https://api.myapi.com',             timeout: 120000,             headers: {                 username: ...
I need to download ~50k webpages, get some data from them and put it to variable.   I wrap each request into Promise and then Promise.all() them. I use Request library.   Simplified code:  const request = require('request'); const urls = [url...
I'm fiddling around with using Node.js to scrape data from an e-commerce site. I use Request to retrieve the DOM of the page and Cheerio to do server-side DOM selection.  const cheerio = require('cheerio'); const request = require('re...
The following code is used to fetch a .zip file from our web application. The file is generated by closing another application safely then zipping, finally sending it for download.  var dl = function() {     request({         method: 'GET',...
I am trying out the OpenShift cloud server with a nodejs instance. I am trying to perform a POST request to the oneSignal API.  The POST is successful but oneSignal sends 4 notifications for a single POST.  I think I have isolated that the issue is w...
I have a Hubot plugin, that listens for JIRA webhooks, and announces in a room when new tickets are created:  module.exports = (robot) ->   robot.router.post '/hubot/tickets', (req, res) ->     data = if req.body.payload? then JSON.pars...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.