Error on step 3 Lab1

Error on step 3 Lab1

by MUSTAPHA COLLEY -
Number of replies: 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 

In reply to MUSTAPHA COLLEY

Re: Error on step 3 Lab1

by 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
In reply to AZAR BAGHERI ZIDEH SARAEI

Re: Error on step 3 Lab1

by 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).
In reply to MUSTAPHA COLLEY

Re: Error on step 3 Lab1

by 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?

Attachment Screenshot 2022-12-19 at 15.24.37.png
In reply to ALINA SKRYLNIK

Re: Error on step 3 Lab1

by 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.