node-request Questions

2

Solved

I am trying to send data from my node application to a 3rd party HTTP endpoint. I am parsing the data on the request object coming from the client using the multiparty module and sending the data...
Godship asked 4/9, 2019 at 12:59

4

I'm using Node.js - async & request module to crawl 100+ millions of websites and I keep bumping into errors ESOCKETTIMEDOUT & ETIMEDOUT after few minutes. It works again after I restart t...
Scrimmage asked 20/6, 2014 at 5:34

1

I have a spreadsheet with a collection of cards, and I wrote a doGet() function to pick a random one, and return it to the user. When entering the Web App url into a web browser, the result appears...
Option asked 23/5, 2020 at 3:59

9

Solved

I'm trying to make a HTTP POST request to the google QPX Express API [1] using nodejs and request [2]. My code looks as follows: // create http request client to consume the QPX API var request...
Periodontics asked 28/11, 2014 at 14:8

6

Solved

function getCookies(){ request('http://google.com', function (error, response, body) { if (!error && response.statusCode == 200) { console.log(response.headers); } }) } Result { d...
Voyeur asked 11/12, 2015 at 7:24

2

Solved

I am making call to the bitbucket API to get all the files that are in a repo. I have reached to a point where I can get the list of all the folders in the repo and make the first API call to all t...
Ignace asked 16/10, 2018 at 19:6

1

Solved

I've racked my brain (and others) trying to get this to work. I am pulling a photo via MS Graph API - this part works fine. I am able to receive the data (as bytes). However, I can't get the image ...
Villein asked 12/9, 2018 at 10:45

2

Solved

I am using the request library to make external api calls. https://github.com/request/request. I am using the native promise/async extention. https://github.com/request/request-promise-native. How...
Wendell asked 19/6, 2018 at 9:21

2

The application is Node.js based web crawler that does requests to remote servers via request library. Requests are made through authenticated HTTP proxy servers with 99% and higher uptime, provid...

3

Solved

I'm attempting to pipe a request for handling by a remote server, along the following lines: var destination = request(url); req.pipe(destination).pipe(res); This works just fine for GET request...
Somatic asked 15/6, 2017 at 12:18

1

Solved

Is it possible to save JSON data directly to Firebase Firestore? I tried saving my below json data, Data [{"id":"1234","name":"Chair","symbol":"CHR"}] Code: request({url: 'https://api.example...
Windywindzer asked 15/1, 2018 at 18:20

1

Solved

Sorry guys, I'm kind of lost. How can I console.log response.statusCode when piping? var express = require('express'); var path = require('path'); var request = require('request'); var fs = requir...
Seldon asked 23/9, 2017 at 15:56

2

Solved

I have a specific task: I need to download an image from the source URL and upload it to another host via POST request as multipart/form-data. I'm trying to use node.js request library but never su...
Empathy asked 28/11, 2016 at 21:27

2

Solved

I have more than 2000 user in my database , when I try to broadcast a message to all users, it barely sends about 200 request then my server stops and I get an error as below : { Error: connect E...
Gabbi asked 4/7, 2017 at 14:37

1

I am using Express to proxy requests to a separate API server which is protected by OAuth 2 access tokens. When a token expires, the server will return a 401 which I am now handling in my router mi...
Hamster asked 27/4, 2016 at 7:42

2

Solved

I'm consuming a JSON stream and am trying to use fetch to consume it. The stream emits some data every few seconds. Using fetch to consume the stream gives me access to the data only when the strea...
Rockling asked 3/8, 2016 at 4:25

2

Solved

I use MongoDB as the back-end database for my node/Express application. To summarize the problem I am facing, I don't know how to set up the body-parser configuration in my Express app, because the...
Frivolity asked 5/7, 2016 at 5:9

0

I'm using Requests to pipe an HTTP Stream to a local geospatial file-processing utility, ogr2ogr: httpStream.on('response', function(response) { var ogr = ogr2ogr(response) .skipfailures() .op...
Rasmussen asked 4/7, 2016 at 2:58

1

Specs Here's some background info on the system I'm running: Ubuntu v 14.04 Node v4.4.0 Node request module v2.69.0 All of this on a DigitalOcean droplet/server on a New York-based center. &n...

1

Solved

Is there a less-nested way to achieve the following with request-promise: r = require('request-promise'); r(url1).then(function(resp1) { // Process resp 1 r(url2 + 'some data from resp1').then...
Magpie asked 28/1, 2016 at 3:15

3

I couldn't get any help on reddit/r/redditdev so I'm hoping you fine folks at stackoverflow can help I'm trying to call /api/submit. I can successfully log the user in and retrieve the bearer/ac...
Conjunct asked 14/7, 2015 at 17:1

1

Solved

I would like to upload a remote image to my own server using Node and the request module. I've figure out how to upload local images using the following code: var options = { url: 'https://myowns...
Morlee asked 17/10, 2015 at 1:24

4

Solved

We need to Expose REST endpoint. There are three parameters, how to make those optional. Requirement is it should work with any one of those parameters. e.g. http://server:port/v1/api/test-api/use...
Floria asked 10/6, 2014 at 0:35

1

Solved

I have been struggling to succeed in downloading an image without piping it to fs. Here's what I have accomplished: var Promise = require('bluebird'), fs = Promise.promisifyAll(require('fs')), r...
Hem asked 8/7, 2015 at 10:21

3

Solved

See bottom of question for an update, based on comments/answers: This question is really about the possibility of hidden threads that do not execute callbacks. I have a question about a potentia...

© 2022 - 2024 — McMap. All rights reserved.