Paginator incorrectly thinks its done #150
Replies: 3 comments
-
Hi, It is indeed a problem... const tl = await roClient.v2.userTimeline(id, {exclude: "retweets"});
// Ensure this is true
if (tl.done) {
// @ts-ignore
console.log(tl._realData.meta)
} Update: This is, unfortunately, a problem coming from Twitter. If You can mitigate the issue by asking a way bigger const timeline = await client.v2.userTimeline(id, { exclude: 'retweets', max_results: 100 }); |
Beta Was this translation helpful? Give feedback.
-
Ah, I see. |
Beta Was this translation helpful? Give feedback.
-
In theory, fetch 1 or 3 times will not change anything, as Twitter does not send As it isn't a bug of this library, I'm transferring this issue as a discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you for example have a userTimeline request that has the exclude: "retweets" property,
it has a chance of returning an empty page (no non-retweet tweets found), causing the timeLine to incorrectly determine that it's finished when you can still get more data.
Example Reproduction:
Beta Was this translation helpful? Give feedback.
All reactions