You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
The next_cursor attribute (and thus, function) generated from get_friends occasionally overflows because something in the code is not properly using next_cursor_str.
Expected behavior
next_cursor returns a cursor to the next page of query results.
Observe that after 16 pages, the next_cursor function returns an integer large enough to overflow into scientific notation. I believe this is because the code in get_friends_ which copies the next_cursor value into the table attribute uses next_cursor instead of next_cursor_str. I do notice that the next_cursor() S3 methods correctly check for next_cursor_str, but get_friends circumvents the next_cursor() function and directly sets the attribute from the [["next_cursor"]] item in the response.
rtweet version
0.6.8
The text was updated successfully, but these errors were encountered:
Problem
The
next_cursor
attribute (and thus, function) generated fromget_friends
occasionally overflows because something in the code is not properly usingnext_cursor_str
.Expected behavior
next_cursor
returns a cursor to the next page of query results.Reproduce the problem
Observe that after 16 pages, the next_cursor function returns an integer large enough to overflow into scientific notation. I believe this is because the code in
get_friends_
which copies thenext_cursor
value into the table attribute usesnext_cursor
instead ofnext_cursor_str
. I do notice that thenext_cursor()
S3 methods correctly check fornext_cursor_str
, butget_friends
circumvents thenext_cursor()
function and directly sets the attribute from the[["next_cursor"]]
item in the response.rtweet version
0.6.8
The text was updated successfully, but these errors were encountered: