Questions tagged [requestify]

Requestify is an easy to use and extendable HTTP client for nodeJS, supporting cache.

Requestify is an easy to use and extendable HTTP client for nodeJS, supporting cache.

https://github.com/ranm8/requestify

16 questions
3
votes
1 answer

Synchronous HTTP requests in Node.js

I've got three components A, B and C. When A sends an HTTP request to B, B sends another HTTP request to C, retrieves the relative content and sends it back to A, as an HTTP response. The B component is represented by the following Node.js…
auino
  • 1,644
  • 5
  • 23
  • 43
1
vote
0 answers

How can I make post request with an excel file?

I'm trying to send post request to url with an excel file that exists in a path but all the examples I tried tries to parse excel file. How can I send excel file as it is using the below code? This is the method static async…
1
vote
2 answers

How to add Bearer token to requestify post method in nodejs?

How can i pass Bearer token with post method. I tried with postman but getting this response "Error: Unauthorized Access. Request is not authorized" await turnContext.sendActivity(`${await requestify.request(url, { …
kiran
  • 11
  • 1
  • 6
1
vote
2 answers

nodejs promise just not waiting

I'm completely rewriting my question do boil it down even further. Why, in the following code, does x() equate to undefined instead of success which is logged to the console by console.log('success'); The last line finishes executing in the console;…
user5903880
  • 102
  • 8
1
vote
0 answers

Node - Log my request after a POST with requestify

I make a node server and i must logging everything it does. I use Requestify to do POST request. requestify.request(uriGoogleApi, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'key=' +…
Dathov
  • 45
  • 1
  • 1
  • 7
1
vote
2 answers

Sending HTTP Post request from node to Foxx service (ArangoDB)

I am trying to send a post request from a node + express server to my Foxx service on Arangodb. On the node side : var route = arangopi + '/edge/' + col.name ; var body = {data: data, from: fromId, to: toId} ; console.log('|| body :', route, body)…
user6403833
  • 269
  • 5
  • 13
1
vote
0 answers

How to use token refresh in ranm8/requestify?

I have my api with dingo/laravel. Normally works without problems for mobile (android). My AuthController@token in dingo/laravel: public function tokenRefresh() { $token = JWTAuth::getToken(); // Header:Auth..Baerer ... if…
Kvlknctk
  • 634
  • 12
  • 27
1
vote
2 answers

Node.js timeout with requestify POST

Im trying to request a status of a user, with a POST from node.js to a PHP file. My issue is that the webservice Im calling is VERY slow to reply(4 sec), so I think the .then finishes before the 4 sec, and therefore returns nothing. Got any idea if…
Bidstrup
  • 1,597
  • 2
  • 16
  • 32
0
votes
0 answers

How to turn off Needle JS or Requestify JS logging?

I have the code: Click When I'm starting my js application, it keeps throwing me what the response answer is: Click How can i turn it off?
awkkk999
  • 1
  • 1
0
votes
0 answers

How to turn off Needle JS logging? (throw)

I have the code: When I'm starting my js application, it keeps throwing me what the response answer is: How can i turn it off? I need to turn off logging, how could I? Turn of logs needle js
awkkk999
  • 1
  • 1
0
votes
1 answer

In nodejs is there a way to have a module always available to me?

Like essentially a "global node_modules" or something similar, so when I run node by itself, I can always get, say the requestify package. C:\> node > var request=require('requestify'); Without "being in" a folder that already has requestify…
enorl76
  • 2,562
  • 1
  • 25
  • 38
0
votes
2 answers

Return html response to calling function in nodejs

I've got this Node.js snippet. var requestify = require('requestify'); // [...] function remoterequest(url, data) { requestify.post(url, data).then(function(response) { var res = response.getBody(); // TODO use res to send back to the…
Auron
  • 51
  • 5
0
votes
1 answer

javascript, nodejs, requestify timing

What do I have to do to make this work? I've proven the GET is returning successfully and I'm receiving the res.body I'm expecting. But of course x is 'undefined' because the call to getSometing() isn't going to wait on requestify() var x =…
user5903880
  • 102
  • 8
0
votes
2 answers

node.js requestify appears to do nothing at all

How do you troubleshoot this *? I'm sorry but it is SO disappointing when what should be simple things don't work the way it is claimed that they should. Following is clipped directly from the projetc's gitHub site. And if I do the same thing in…
Steve
  • 905
  • 1
  • 8
  • 32
0
votes
1 answer

nodejs requestify.request() crashes when the method is given in the options

Why does requestify.request() crash because it doesn't think it was given the method POST var postBody = querystring.stringify(dat); var postOptions = { host: 'https://www.example.com' , path: '/admin' , method: 'post' // POST, 'POST',…
Steve
  • 905
  • 1
  • 8
  • 32
1
2