Hi
I am getting response of “ReadableStreamDefaultReader {closed: Promise}” always when i am invoking api from my code.
And if i try to read then its always returning empty value in result.
I have also tried api in postman and below is my request that i have tried in Postman.
var request = require(‘request’);
var options = {
‘method’: ‘POST’,
‘url’: ‘https://technology-stack3.p.rapidapi.com/RAPItif9m11S3g5f/’,
‘headers’: {
‘x-rapidapi-key’: ‘63a3d804dbmsh8c527cd08273b89p1be26djsn78820fabfd94’,
‘Content-Type’: ‘application/x-www-form-urlencoded’,
‘x-rapidapi-host’: ‘technology-stack3.p.rapidapi.com’,
‘useQueryString’: ‘true’
},
form: {
‘dn’: ‘flipkart.com’
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
加入讨论 - 在下面添加评论: