Error on step 3 Lab1

Error on step 3 Lab1

par MUSTAPHA COLLEY,
Nombre de réponses : 4

Hi guys, does anyone encounter such an issue? if yes how did you solve it?

I have attachedError on step 3 lab1 the screenshot of the error 

En réponse à MUSTAPHA COLLEY

Re: Error on step 3 Lab1

par AZAR BAGHERI ZIDEH SARAEI,
Have you tried to change the date maybe? Because the date in the screenshot is for November, now we are in December
2022-12-08T01:05:00Z
En réponse à AZAR BAGHERI ZIDEH SARAEI

Re: Error on step 3 Lab1

par Lejla Dzanko,
Exactly, the dates are too far away in the past for the recent search endpoint (it can only fetch dates within last week).
En réponse à MUSTAPHA COLLEY

Re: Error on step 3 Lab1

par ALINA SKRYLNIK,

Our group faces the same problem, and it remains even with the academic access token and the different link of the endpoint. 

Do we need to additionally change the settings in the developer profile or is it just the code that should be corrected?

Annexe Screenshot 2022-12-19 at 15.24.37.png
En réponse à ALINA SKRYLNIK

Re: Error on step 3 Lab1

par Lejla Dzanko,
You are using the wrong endpoint. The counts endpoint only returns the number of tweets for that query and has different request fields. Please read the documentation, this is the end point you need: https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-all#Optional

Additionally, the error message can tell you a lot about what went wrong. If it is something we haven't encountered you can Google it and find an answer quickly.