I have spent a day trying to solve this issue but I didn't find a solution yet.
I am a current Twitter Essential account user and I'm trying to retrieve data from Twitter by using "academictwitteR" package. But I always got the following error and it seems like a connection problem. I'm behind the proxy and I already set up the configure by meself.
The code I run:
PPENEW<-get_user_timeline("3landers", start_tweets = "2022-02-25T00:00:00Z", end_tweets = "2022-03-04T00:00:00Z",bearer_token = TWITTER_BEARER,n=200)
The error message:
Error in curl::curl_fetch_memory(url, handle = handle) : HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
But when I run the testing code like:
it performs well and shows
$category  "Success" $reason  "OK" $message  "Success: (200) OK"
Can anyone help me with this? Appreciate.