Twitch.tv API Project Help - Same Code Giving Dif Results

Twitch.tv API Project Help - Same Code Giving Dif Results
0

#1

Hey everyone,

I’m working on my twitch API project, and I’ve got it pretty much working, but I’ve noticed when I run the code it gives me differing results. If I refresh several times in a row it usually gives me the correct info and then stays that way. Sometimes the order of the results is not the same as the array that is getting mapped through, and sometimes the user that does not exist shows “offline” instead of the “404 Error” it should. Then I hit refresh and it shows up the way it should.

https://codepen.io/derekbmcintire/pen/yXvdgY

I’m completely lost as to what is happening or why. What gives?
Thanks!


#2

Can you share your project?


#3

Sorry, realized I forgot the link and tried to edit this post ten times and it wouldn’t let me!

here’s the link to the pen - https://codepen.io/derekbmcintire/pen/yXvdgY