App Engine / Twitch API Issue (*update*)

96 views
Skip to first unread message

suite...@gmail.com

unread,
Aug 28, 2012, 4:24:03 PM8/28/12
to justintv-ap...@googlegroups.com
Hello.

I figured I would post my findings here.

My original thread is here:

http://support.twitch.tv/discussion/6124/twitch-api-is-generating-an-error-in-app-engine#latest

Any who, the issue is with Twitch TV's API servers. For some reason, app engine is getting blacklisted from receiving any answers when a call is made to the servers. I confirmed this by writing an app that simply prints the call strings on the page. The twitch tv call failed when deployed, where as the ow3d.tv api call worked perfectly.


This is the application that failed (twitch):

import webapp2
import urllib2

class MainHandler(webapp2.RequestHandler):
def get(self):
url = ('https://api.twitch.tv/kraken/streams/nl_kripp')
contents = urllib2.urlopen(url)
self.response.out.write(contents.read())


app = webapp2.WSGIApplication([('/', MainHandler)],
debug=True)


This is the application that worked (own3d.tv):


import webapp2
import urllib2

class MainHandler(webapp2.RequestHandler):
def get(self):
url = ('http://api.own3d.tv/liveCheck.php?live_id=10588')
contents = urllib2.urlopen(url)
self.response.out.write(contents.read())


app = webapp2.WSGIApplication([('/', MainHandler)],
debug=True)


If someone could pass this on to the API team, it would be greatly appreciated. Sorry for the time i've consumed... Hopefully this gets fixed! I need Twitch TV in my Application !

Mike Ossareh

unread,
Aug 28, 2012, 8:23:09 PM8/28/12
to justintv-ap...@googlegroups.com, twitc...@googlegroups.com
We are the team :)

Thanks for your help, I'll get to looking into why this is a problem. Also note that, as per my email yesterday, that we're moving over to a new Twitch specific mailing list, so please make sure you post follow ups there.
 

--
You received this message because you are subscribed to the Google Groups "Justin.tv API Developers" group.
To post to this group, send email to justintv-ap...@googlegroups.com.
To unsubscribe from this group, send email to justintv-api-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/justintv-api-developers/-/XNx6Xj1BBDoJ.
For more options, visit https://groups.google.com/groups/opt_out.



suitegamer

unread,
Sep 2, 2012, 1:05:38 PM9/2/12
to twitc...@googlegroups.com, justintv-ap...@googlegroups.com
Any updates? :D
To unsubscribe from this group, send email to justintv-api-developers+unsub...@googlegroups.com.

romm...@gmail.com

unread,
Sep 9, 2012, 12:30:03 AM9/9/12
to justintv-ap...@googlegroups.com, suite...@gmail.com
I think I am having the same or a similar problem. My API calls fail after the 16th call. On the 17th, it returns a HTTP Error 400: Bad Request.

Fire

unread,
Sep 9, 2012, 4:39:11 PM9/9/12
to justintv-ap...@googlegroups.com, suite...@gmail.com, romm...@gmail.com
That's a standard rate limiting issue, even my clientside javascript page to get a list of followers fails on/after the 16th call. There's no way to get around it. If you're using a non-time sensitive app you can just queue it and pick up where you left off later, but for webpages that need the info now, there are no alternatives with this api

Rommel Rico

unread,
Sep 10, 2012, 11:54:22 AM9/10/12
to Fire, justintv-ap...@googlegroups.com, suite...@gmail.com
Yes, sorry, you are correct. I just inserted some seconds after each call and it worked fine. Thanks. If anyone is interested in the code: https://github.com/RommelTJ/streammaintainer/

Mike Ossareh

unread,
Sep 10, 2012, 1:29:20 PM9/10/12
to justintv-ap...@googlegroups.com, Fire, suite...@gmail.com
Out of interest, why use that video API as opposed to the new one?

--
You received this message because you are subscribed to the Google Groups "Justin.tv API Developers" group.
To post to this group, send email to justintv-ap...@googlegroups.com.
To unsubscribe from this group, send email to justintv-api-deve...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages