Answer the question
In order to leave comments, you need to log in
Why does the request pass through cURL, but I get 429 through nodeJS?
I am writing a request for a third-party service.
If you run curl -I then the answer is normal and complete.
If I write:
request(url, options.requestOptions, function(err, res, body) {
console.log(body);
});
axios({
...options.requestOptions,
method: 'get',
url: url
}).then((resp) => {
console.log(resp.data);
callback('axios done');
}).catch((err) => {
console.log(err.response.status);
console.log(err.response.headers);
callback('error');
}).finally(() => { })
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question