Comments (4)
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.
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.
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.
This issue is reported fixed in the Twitch streams API.
from twitch-api.
Related Issues (20)
- Receiving 404 errors on https://api.twitch.tv/kraken/streams HOT 2
- Gigabytes of memory leaks in twitch embeds crash tabs
- twitch add og:video for twitch clips HOT 1
- USERNOTICE, if a user unsubscribes
- Inaccurate number of followers HOT 2
- Api
- Github still used? HOT 2
- Private messages?
- http://www.twitch.tv/ - Site not reachable
- force_verify=true ignored when scope includes 'openid'
- Response type "id_token" not supported in OICD Implicit Auth Flow HOT 2
- Invalid OAuth 2.0 token
- Twitch
- Twitch Embed body background is white
- Come Watch @Myrrhai on Vimeo.com
- soom1121 HOT 1
- [REQUEST] User subscription current_streak and total_streak
- I cant skid help
- Repository
- Streamers are for people with this ability to with hold breathing... true or false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitch-api.