node-twitter-api-v2 icon indicating copy to clipboard operation
node-twitter-api-v2 copied to clipboard

[bug] Memory leak on `refreshOAuth2Token`

Open mathix420 opened this issue 2 years ago • 0 comments

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

  • Nodejs: AWS Lambda nodejs:20.v19
  • Lib version: 1.16.3
  • OS: AWS Lambda Linux

mathix420 avatar Apr 26 '24 15:04 mathix420