Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: lexical error: invalid char in json text. #38

Open
slcoan96 opened this issue Dec 21, 2020 · 0 comments
Open

Error: lexical error: invalid char in json text. #38

slcoan96 opened this issue Dec 21, 2020 · 0 comments

Comments

@slcoan96
Copy link

I was able to use the package last week a few times, though yesterday I came across this error with a tk_posts(scope="user",...) request:

Error: lexical error: invalid char in json text.
                                      {statusCode: 0,body: {userData: 
                     (right here) ------^

Frankly, I'm not too familiar with json and GET requests generally so this could maybe just be the product of nothing being returned from the request? I used specific examples with active account names so there shouldn't be a problem there. Additionally, I tried this to see if other requests work and got the following error:

> x <- tk_posts(scope = "trends", n = 5)
Error in get_data(url, parse = T, ...) : 
  empty response : request was blocked by tiktok

Any thoughts? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant