Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Search_fullarchive doesn't support query longer than 500 characters #441

Closed
syumet opened this issue Aug 17, 2020 · 3 comments
Closed

Search_fullarchive doesn't support query longer than 500 characters #441

syumet opened this issue Aug 17, 2020 · 3 comments

Comments

@syumet
Copy link

syumet commented Aug 17, 2020

Problem

Search_fullarchive doesn't support query longer than 500 characters.

Expected behavior

According to premium spec, Search_fullarchive should support queries that up to 1024 characters.

Reproduce the problem

## sorry that I wouldn't be able to provide the query here
> nchar(query)
[1] 927
> foo <- search_fullarchive(q = query, n = 100, fromDate=201911010000, toDate = 201911300000, env_name = prod)
tweets/search/fullarchive/.Primitive("prod") ***Error: q cannot exceed 500 characters.

rtweet version

> packageVersion("rtweet")
[1] ‘0.7.0
@llrs
Copy link
Collaborator

llrs commented Dec 22, 2020

Not sure how to test this as I don't have a premium API access. Could you provide the backtrace() to see where is the source of the error?

@syumet
Copy link
Author

syumet commented Dec 25, 2020

@hadley
Copy link
Collaborator

hadley commented Mar 4, 2021

I removed this error during a refactoring (since TWIT_get() will now forwarded the twitter error), so this is now fixed 😄

@hadley hadley closed this as completed Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants