Giter VIP home page Giter VIP logo

Comments (4)

ossareh avatar ossareh commented on July 17, 2024

I'll look into this. FWIW, we enforce a 100 limit - so you should probably
not set it so high :)

On Fri, May 11, 2012 at 12:41 PM, mike-rsi <
[email protected]

wrote:

I frequently receive HTTP error 400 responses from the API to what seem to
be well-formed HTTP requests sent through cURL. Every time I've checked
the API call manually by copying that exact API URL into a browser
(Firefox) immediately after having received the 400 response through cURL,
I get the expected data returned with an HTTP 200 response (i.e. I've never
seen the 400 response while testing the API in a browser).

In addition, I have only ever received the 400 response when the "offset"
GET parameter was set to 1600 or higher (e.g. 1700, etc.). When I start
seeing the 400 errors on these high-offset calls, it seems they happen for
hours at a time, although there will also be "good" (i.e. HTTP 200)
responses to the same high-offset calls mixed in during that time as well.
Then there will be hours (or days) at a time where I do not see a 400
response.

This is an example of the raw HTTP request header sent from cURL that
(sometimes) receives the 400 response:

GET /api/stream/list.json?category=gaming&limit=100&offset=1600 HTTP/1.1
Host: api.justin.tv
Accept: /
Accept-Encoding: gzip


Reply to this email directly or view it on GitHub:
https://github.com/justintv/twitchtvapi/issues/4

from twitch-api.

mike-rsi avatar mike-rsi commented on July 17, 2024

Thanks for looking into it. I do still adhere to a limit of 100. It's the offset that's high when the problem arises. So in the example I'm trying to retrieve the 100 records between 1600 and 1699. That should be okay, right? Thanks for the help!

from twitch-api.

ossareh avatar ossareh commented on July 17, 2024

Oh dude, yeah - that is fine. Sorry my brain transposed "limit" for some reason <_<.

Sent from my iPhone

On May 14, 2012, at 12:21 PM, [email protected] wrote:

Thanks for looking into it. I do still adhere to a limit of 100. It's the offset that's high when the problem arises. So in the example I'm trying to retrieve the 100 records between 1600 and 1699. That should be okay, right? Thanks for the help!


Reply to this email directly or view it on GitHub:
https://github.com/justintv/twitchtvapi/issues/4#issuecomment-5699497

from twitch-api.

Hebo avatar Hebo commented on July 17, 2024

This issue is reported fixed in the Twitch streams API.

from twitch-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.