weekly-tweet-sentiment icon indicating copy to clipboard operation
weekly-tweet-sentiment copied to clipboard

KeyError: 'data'

Open bkengel55 opened this issue 5 years ago • 1 comments

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"]

bkengel55 avatar Dec 07 '20 23:12 bkengel55

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?

JessicaGarson avatar Dec 07 '20 23:12 JessicaGarson