PLhery / node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
https://www.npmjs.com/package/twitter-api-v2
Apache License 2.0
1.29k stars 176 forks source link

unable to get local issuer certificate #466

Closed ihorbond closed 1 year ago

ihorbond commented 1 year ago

Describe the bug Getting the following error thrown from twitter-api-v2\dist\cjs\client-mixins\request-handler.helper.js:55) image

To Reproduce Please indicate all steps that lead to this bug:

  1. Create new client passing in clientId and clientSecret.
  2. call .generateOAuth2AuthLink() with tweet.read scope
  3. after user clicks "Authorize App" in browser and callback is called try to call .loginWithOAuth2({...}). inside. This is where it throws.

Expected behavior Receive access and refresh tokens

Version

Additional context As a side note I believe this line https://github.com/PLhery/node-twitter-api-v2/blob/master/src/client-mixins/request-handler.helper.ts#L57 is supposed to be responseError: error,