weekly-tweet-sentiment
weekly-tweet-sentiment copied to clipboard
KeyError: 'data'
Hello when running this code I have created the yaml and azure endpoints but this error pops up in this line data_only = res_json["data"]
Thanks for reaching out. I have a few follow up questions. My guess is you are getting an error and therefore the json payload doesn't have an object called data.
Which file are you running? Have you been able to make a successful request to the Twitter API? Do you have a project set up in the developer portal?