Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Valentin
@vroussea
hello, is there a way to get json response when using client ?
Valentin
@vroussea
and do you know what is the proper https request in order to authenticate user ?
bloxploits
@bloxploits
Does anyone know how to send a post request with a "Request payload"?
bloxploits
@bloxploits
Nevermind, got it
dev-afzy
@dev-afzy
hy guys iam new here please anyone help me to install request
i got an error while installing the package request/request#3197
violet
@songdangwei
try {
let err = request('http://'+addr,{timeout:300})
options.proxy = "http://"+addr
} catch (e) {
// if(e==='ESOCKETTIMEDOUT'||'ETIMEDOUT'){
if(e.connect === true){
options.proxy = null
}
console.log(e)
}
program is usually shutdowm.What should I do?
program Direct crash of timeout as usually
violet
@songdangwei
A.I. Developer
@8ai
Hope this would be usefull pull request for some participants request/request#3209
Sandip Jadhav
@SandySJadhav
Hello, I need one help.I am using request module for downloading a file.
myrequest = request({
    method: 'GET',
    uri: file_url,
    headers: {
        range: ("bytes=" + bytes + "-" + totalSize)
    }
}).on("error", function(err) {
    alert("error");
});


when Internet connection is down, I am not getting error alert; Can someone help me with this? Thnx 
Ghost
@ghost~5de75f17d73408ce4fd300ae
does this support http2
?
Werd Bmocsil
@aliscomb_gitlab
Greetings, I'm having difficulty getting request.post() to send a fileStream in `multipart/form-data', something like this:
let s3FileStream = s3.getObject(s3ObjectLocation).createReadStream();
let sender = "bob";
let receiver = "steve";

let formData = { "To": sender,
"From": receiver,
"file": s3FileStream };

request.post({
        url: theURL,
        formData: formData,
        auth: {
            user: theUserName,
            pass: thePassword
        }
    })
If "file" in formData is a string, it sends just fine.
but when set to s3FileStream as shown above, I get an HTTP 400 BAD REQUEST
Werd Bmocsil
@aliscomb_gitlab
Also, when I replace s3FileStream with a ReadStream from fs, it works as expected.
e.g.
const fs = require('fs');
s3FileStream = fs.createReadStream('/tmp/s3TestInput.txt');
so, my question is:
Should request.post(...) work when setting a formData value to return from an S3.getObject().createReadStream()
Werd Bmocsil
@aliscomb_gitlab
I think I found the problem.
request appears to require fields readable, path, and modefor isReadStream.
Unfortunately, while the value of s3.getObject(s3ObjectLocation).createReadStream() has readable, it has nothing for path or mode.
So I can’t use the two together directly.

it seems like a test for method .pipe() would be sufficient.

Like in axios: https://github.com/axios/axios/blob/master/lib/utils.js#L149

Conor Reid
@unreleased
Hey, any good HTTP2 libraries for node?
that have proxy support too
AELDREI
@AELDREI
Hi I'm new to this
How to resolve this? npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
innovativedeveloper2021
@innovativedeveloper2021

Capture All Request and Response Alone

I have a web application where huge request and response is being transferred.

I'm looking for a tool which just captures the request and response in a database or csv file and no other details are required.

Can you please kindly suggest me a tool or any interceptor without touching the code?

Thanks

innovativedeveloper2021
@innovativedeveloper2021
Can anyone please explain what is a websocket and webhook?