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.25k stars 175 forks source link

Plugin rate-limit issue #412

Closed camiaei closed 1 year ago

camiaei commented 1 year ago

I'm having a weird issue regarding the rate-limit plugin:

I'm hitting the same endpoint from two different places (my local machine/my production environment) and I'm getting two different .remaining and .reset values.

In both places I am using the same API keys.

Does it make any sense? On both sides you should get the same values, right? 🤔

PLhery commented 1 year ago

I think both side are supposed to get the same values indeed ; I don't think it comes from the library though.

alkihis commented 1 year ago

Hi, Different values can mean: