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:14:15)       at Request.plumbing.callback (node...
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-promise.  The question is on the second code block,...
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:     TypeError: str.trim is not a function   I also played aroun...
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 request-promise framework, and I'...
I'm trying to grab some text from a Portuguese site that is encoded in ISO-8859-1 according to the meta tag. I'm using NodeJS and the request-promise package. What I get back, for example, is   Alg?s  I believe I need to convert that to ISO-8...
Anyone can help me out of this?..   I'm using request-promise to call an API from AWS  in firebase functions below is the code im using, and the image is the output.  I'm wondering why it returns statuscode 400 with the expected output from t...
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 matter what value I set for timeout, the request always t...
I'm currently using request-promise in nodejs to make a request to a website and then return the headers, as I'm trying to get the url (location) of the request incase of redirects. Although the issue I'm having is that the location is no...
I'm trying to use request-promise to scrape a the price of an item from Asos.com. When I attempt to run the code below, I get a 403 error. Is this possible that I get this error although the URL that I am attempting to scrape is publicly availabl...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.