request-promise Questions
4
Solved
I've got a 'script' that does thousands of requests to a specific API. This API will only allow 5 requests per second (and probably it measures differently then me). To make the requests I'm using ...
Didactics asked 12/10, 2017 at 4:2
2
Solved
Async Await map not awaiting async function to complete inside map function before mapping next item
I have an array that I am mapping, inside the map function I am calling an asynchronous function, that is performing an asynchronous request returning a promise using request-promise.
I am expectin...
Saundrasaunter asked 24/11, 2020 at 0:32
4
Solved
I was looking for modern modules that implement basic HTTP methods such as GET, POST in Node.js.
I guess the most popular is request. The async/await version of it is called request-promise-...
Cuthbert asked 21/2, 2020 at 8:14
3
Solved
I am not sure why the following code is throwing google api key permission denied.
I have the api or service enabled both in firebase console and google console.
export async function createJobDyn...
Newby asked 29/12, 2019 at 14:31
3
Solved
I received multiple pdf files and must download it from a REST-API.
After auth and connect I try to download the file with request-promise:
const optionsStart = {
uri: url,
method: 'GET',
head...
Wolfenbarger asked 12/2, 2018 at 18:10
3
I was just trying out async/await with request-promise and ran into this error:
RequestError: Error: no auth mechanism defined
at new RequestError (node_modules/request-promise-core/lib/errors.js...
Oppenheimer asked 7/8, 2017 at 16:8
1
I am having similar problem as discussed here:
https://github.com/request/request-promise/issues/183
I am using [email protected] and [email protected]
And getting the same error:
Ty...
Absently asked 25/5, 2018 at 0:4
2
Solved
So I've created a component that shoots off post requests with props that I provide.
Although I'm familiar with Async await I for some reason can't seem to get this to return the actual value of t...
Archetype asked 1/3, 2019 at 1:7
3
Solved
I have a problem with this code:
var request = require('request-promise');
class Test{
constructor(){
}
async Start(){
var response = await this.getResponse();
await console.log(response);
}...
Apoplexy asked 27/8, 2018 at 10:58
0
I am using request-promise library and trying to set the timeout as milliseconds as per their documentation. I have few requests on the server side that take more than a minute to response, no matt...
Vision asked 9/7, 2018 at 6:10
2
Solved
I am using the request library to make external api calls. https://github.com/request/request. I am using the native promise/async extention. https://github.com/request/request-promise-native.
How...
Wendell asked 19/6, 2018 at 9:21
2
Solved
I have two files, getItemInfo.js to make API calls and getItemInfo.test.js which is the respective Jest test file.
On the test file, I am mocking the http calling triggered by node module request...
Zabaglione asked 8/8, 2017 at 6:3
5
Solved
How do you handle an error (eg. "new error" below) that is outside of the promise?
function testError() {
throw new Error("new error") // how to handle this?
var p123 = new Promise(function(reso...
Lupercalia asked 14/4, 2017 at 7:15
1
© 2022 - 2024 — McMap. All rights reserved.