Questions tagged [npm-request]

npm-request is a node package designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.

npm-request is a node package designed to be the simplest way possible to make HTTP calls. It supports HTTPS and follows redirects by default.

Useful links

158 questions
1
vote
1 answer

Getting DEPTH_ZERO_SELF_SIGNED_CERT in my browserify react app

Having problems doing requests over invalid SSL from my browserify react app, I basically have this issue: https://github.com/request/request/issues/418 as I'm using request. I have tried setting both strictSSL=false and rejectUnauthorized=false but…
Mattias Farnemyhr
  • 4,148
  • 3
  • 28
  • 49
0
votes
1 answer

Why does npm request module throws etimedout error randomly?

Here is my program as three modules. App.js : const geocode = require('./utils/geoCode') const forecast = require('./utils/forecast') geocode ('makkah', (error,data) =>{ console.log('Error',error) console.log('Data',data) …
0
votes
3 answers

Error when I use npm install with visual studio code

Hello I am working on a project where I have to build an API. With node.js, express, and Mongodb. When I install the dependencies of express or mongo db ( exemple :npm install express), I have a error. I work with my wifi, yesterday everything was…
0
votes
2 answers

Node js passing query string to url

I am using the request promise plugin request to create the get and post api. I want to pass the URL with a parameter. below is my code. How to pass parameter value in URL? async function getDetails (req) { var options = { url:…
nagaraj
  • 797
  • 1
  • 6
  • 29
0
votes
2 answers

npm install react-router-dom.... isn't working and i am getting the following msg

My command prompt wasn't able to install react-router-dom due to 3 moderate severity vulnerabilities run npm audit fix to fix them, or npm audit for details vulnerabilities that were found, and npm audit fix is not fixing anything. It says that all…
0
votes
0 answers

NPM Not initiating

I installed the node.js from node.js.org. It is my understanding that NPM downloads automatically with node. I went through the steps and the node was installed successfully as shown in PDF I attached. When I go into hyper to initialize npm, I get a…
DC Squad
  • 1
  • 1
  • 1
  • 2
0
votes
2 answers

when I'm trying to install @angular-cli i'm getting the following warning

Getting these warnings while installing @angular-cli. Are these serious issues or is there something I'm missing? npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been…
0
votes
1 answer

Lambda function not running part of code returning nothing

I am trying to have a function return the correct values back to another function which does processing on the returned data. I have this function inside the same file as the one I am trying to call it from - a Lambda function - I am calling it…
joshk132
  • 1,011
  • 12
  • 37
0
votes
2 answers

How I can solve npm installtion problem to laravel project

when i run npm i it returns the error. C:\xampp\htdocs\personal\freshShop>npm i ** npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated chokidar@2.1.8:…
0
votes
3 answers

Get data from request npm

I'm building an app using express js and using request(v-2.88.2) to get data from an api request(url, function(error, request, body) { var data = JSON.parse(body); }); I want to use var data in other functions. Are there any ways to do this?
Deepak singh
  • 35
  • 1
  • 4
0
votes
4 answers

SyntaxError: Unexpected token e in JSON at position 1 with JSON.parse()

I am trying to use openweathermap.org weather api, I am getting the data but having trouble parsing it. Here's my…
Deepak singh
  • 35
  • 1
  • 4
0
votes
1 answer

POST request not registering

I am making a post request from a node application to a php file and for some reason the POST request isn't registering. Here is the PHP file:
Isaac
  • 59
  • 8
0
votes
1 answer

How to capture final response in case of HTTP redirect

I'm using the npm-request package to capture HTTP response. In case of status code 304, it captures an empty body. r(reqOptions, (err, response, body) => { logger.info("Response: " + response.statusCode); logger.debug(body) }).pipe(res) How…
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
0
votes
1 answer

How to uninstall multiple plugins at a time using npm-uninstall?

I would like to uninstall set of plugins all at one time Example: npm uninstall plugin1,plugin2,... It should uninstall all the plugins
ssomu
  • 79
  • 7
0
votes
0 answers

How would I POST or PUT data into a google sheets sheet with node.js and the request package

I need to POST or PUT data into a google sheets sheet using the requests package though I do not know how to do this. I know how to GET data: const request = require('request'); const sheetget =…