Intermittent Error 400 (Invalid Cursor) from Helix Streams API

Around 12:30 PST I began seeing errors with pagination on the Helix Streams endpoint. Here is the response: Body: {"error":"Bad Request","status":400,"message":"invalid cursor"}

Here was the chain of pagination before hitting the error:

I am facing the same issue. It was working fine yesterday, but today I get this error very often.

Happens around 1 in 40 calls or so.

Im getting a ton of these, any response from Twitch?

Getting this too. It’s my first time using the Helix Streams API though. Has this always been an issue or is this a new issue that just happens to have emerged as I got started?

As a workaround, you can add a retry and it works.

I don’t know what programming language you’re using, but I added a check in Python:

if response.ok:
        # continue with your programme
        # retry

Normally it works after the first retry, but sometimes it takes 2 or 3 retries to work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.