Hey I’m a bit confused on how I’m getting rate limited responses back when trying to subscribe to a webhook or querying for user information. I’m sending the below two curl commands:
curl -vH “Authorization: Bearer token” -X GET ‘https://api.twitch.tv/helix/users?id=_userId_’
curl -vH “Authorization: Bearer token” -H “Content-Type: application/json” -X POST -d ‘{“hub.mode”:“subscribe”, “hub.topic”:“https://api.twitch.tv/helix/users/follows?first=1&to_id=_userId_”, “hub.callback”:“http://e3c1c7e9.ngrok.io/callbacks”, “hub.lease_seconds”:“0”, “hub.secret”: “”}’ https://api.twitch.tv/helix/webhooks/hub
Both are receiving a status code of 429 and the headers in the response show the following:
Ratelimit-Limit: 120
Ratelimit-Remaining: 0
Ratelimit-Reset: 1522898025
I was using this same command about 24 hours ago and it worked fine. Then when I tried again about an hour ago I was getting throttled. I thought this was strange so I changed my password and created a new OAuth token but I saw the same response.
I know for a fact I am not hitting Twitch with more than 120 request a minute, what else could I be doing wrong?
