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 in interest_over_time(widget, comparison_item, tz) : Status code was not 200. Returned status code:401 #375

Open
bampigio opened this issue Nov 17, 2020 · 2 comments

Comments

@bampigio
Copy link

bampigio commented Nov 17, 2020

Hi there,

I' m coming back with an issue that was mentioned before by Flyingduc in:
Error in interest_over_time(widget, comparison_item, tz) with multi-period queries #345

The problem has to to do multi-periods queries in the package "gtrendsR". Here is an example, where I try to obtain google trends data for the term "shoes" at daily frequency:

library(gtrendsR)
data<-gtrends("shoes", geo = c("US"), time = c("2004-01-01 2004-03-31","2004-04-01 2004-06-30",
"2004-07-01 2004-09-30","2004-10-01 2004-12-31","2005-01-01 2005-03-31"))

I get the error:

_Error in interest_over_time(widget, comparison_item, tz) :
Status code was not 200. Returned status code:401_

A single-period query still works as normal without any problem:
data<-gtrends("oil", geo = c("US"), time = "2004-01-01 2004-03-31")

Btw, I have installed the the last R version before running the package: R version 4.0.3 (2020-10-10)

I'm sorry if this is considered as cross-posting, but updating the package didn't solve the problem.
I also wonder if the period limits for download can be extended beyond 5 periods.

regards

@PMassicotte
Copy link
Owner

Same as #360.

@Kacimi-Amine
Copy link

Same error here ! I'm using v ‘1.5.1’ ... any solution ?

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

3 participants