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.24k stars 174 forks source link

[bug] Memory leak on `refreshOAuth2Token` #528

Open mathix420 opened 2 months ago

mathix420 commented 2 months ago

Describe the bug 128MB+ of memory are used after calling the function (which has lead to my aws lambda being killed during token refreshing)

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

  1. await oauthClient.refreshOAuth2Token(refreshToken)

Expected behavior A clear and concise description of what you expected to happen.

Version