Questions tagged [node-https]

53 questions
0
votes
1 answer

Coalescing (combining) callbacks in node.js 6

I'm working with an AWS lambda function that has a sort of 'map/reduce' feel to it. But the 'map' part of it, that is the part that does multiple calls is async. Using the Node 6 STD lib, is there a dynamic way to get all results returned to a…
Jono
  • 3,393
  • 6
  • 33
  • 48
0
votes
1 answer

How to get a count of the current open sockets in Node?

I am using the request module to crawl a list of URLs and would like to limit the number of open sockets to 2: var req = request.defaults({ forever: true, pool: {maxSockets: 1} }); req(options, function(error, response, body) { ... code…
NightOwl
  • 1,069
  • 3
  • 13
  • 23
0
votes
2 answers

nodejs req.on('end', callback) doesn't work property

I am currently buildings proxy using nodejs, which use following syntax for sending and receiving https request and response. However in my project, the response is a liitle bit larger, so typically, req.on('data', callback) will be called 5~7 times…
Chen Chen
  • 11
  • 1
  • 5
0
votes
0 answers

Solutions for fixing node.js https library when huge amount of request need be sent concurrently

I am currently working with project that huge amount of https requests (~15K~20K per second) need be sent via node.js server (node v4.2.6). The general relevant code structure can be seen at final of this post. We have tried by sending approximately…
Chen Chen
  • 11
  • 1
  • 5
0
votes
1 answer

How do I run multiple Apps on Express without routing?

I have 2 apps I am looking to add to my profile website which itself is an express app. I want to run these apps under a /projects route such that we can have localhost/projects/app1 and localhost/projects/app2 I want all the sub routes for each app…
0
votes
1 answer

Node.js Https POST - possible error codes

My Node.js code to make https POST request is, var req = https.request(options, function(res) { var data = ''; res.on('data', function(chunk) { data += chunk; }); res.on('end', function() { var response = JSON.parse(data); …
RaR
  • 3,075
  • 3
  • 23
  • 48
0
votes
1 answer

Issue logging in to website with AWS Lambda, cert issue

I am writing an AWS Lambda using the Node https package and my request to login to an API keeps timing out. The Lambda setup is fine: -- once I have copied the ca-bundle.crt file into /etc/pki/tls/certs/ I can use curl to login to the external…
Jean Marie
  • 190
  • 1
  • 6
0
votes
0 answers

Using HTTPS with ExpressJS

Perhaps I'm not understanding how SSL/HTTPS works (likely), but SalesForce's API requires an https connection in their callback so I'm trying to get my head around it. Here's how I've set it up in app.js var http = require('http'); var https …
JVG
  • 20,198
  • 47
  • 132
  • 210
1 2 3
4