PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
352 stars 112 forks source link

Status code was not 200. Returned status code:500 #451

Open jdeverdun opened 1 year ago

jdeverdun commented 1 year ago

Hello everyone,

Since a few day I've got the error (on any request): Error in interest_over_time(widget, comparison_item, tz) : Status code was not 200. Returned status code:500

I first though it was a daily limit, yet I still havethis issue on other computer. Am I the only one ?

EDIT : the issue seems to be related to the time range, it fails when I give for example a=gtrends( 'bike' , geo = 'FR' ,time= 'now 1-d' , low_search_volume = TRUE)

but it "does not fail" when date range is specified.

I guess it is related to google trends itself, but wanted to make sure !

Thanks for your help.

Best regards

eddelbuettel commented 4 months ago

@ytmben Keep in mind that 'experienced behaviour'' will likely depend on both your account, its cookies, past use, ... and what happens at the backend. In short, "we do not know" and this is not an official or sanctioned API anyway.

We can only assert sometimes that "it works for us" which may suggest the code is not broken, but does not generally imply that it must work for you once or repeatedly.

ytmben commented 4 months ago

@eddelbuettel Ok, understood, thanks for the clarification