/users/:user returns v2 object when v3 is requested

The /users/:user endpoint seems to return a v2 object for some users, even when v3 is requested explicitly through the querystring.

The two following requests both return the exact same object for me, but X-API-Version in the response is set correctly to either 2 or 3.

{
    "display_name": "L1KE_A_BOSS",
    "_id": 29113058,
    "name": "l1ke_a_boss",
    "staff": false,
    "created_at": "2012-03-18T20:16:22Z",
    "updated_at": "2015-12-23T09:57:23Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/l1ke_a_boss-profile_image-e03ca0049aefd060-300x300.png",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/l1ke_a_boss"
    }
}

When querying test_user1 I get different results for v2 and v3 as expected.

{
    "display_name": "Test_user1",
    "_id": 22747064,
    "name": "test_user1",
    "type": "user",
    "bio": null,
    "created_at": "2011-06-02T20:04:03Z",
    "updated_at": "2015-11-22T16:17:22Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/test_user1-profile_image-ac0a2f0d39dda770-300x300.jpeg",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/test_user1"
    }
}
{
    "display_name": "Test_user1",
    "_id": 22747064,
    "name": "test_user1",
    "staff": false,
    "created_at": "2011-06-02T20:04:03Z",
    "updated_at": "2015-11-22T16:17:22Z",
    "logo": "http://static-cdn.jtvnw.net/jtv_user_pictures/test_user1-profile_image-ac0a2f0d39dda770-300x300.jpeg",
    "_links": {
        "self": "https://api.twitch.tv/kraken/users/test_user1"
    }
}

I checked various users: some work as expected, some don’t.
Is this a known bug? Maybe a caching problem?

This is a known issue

1 Like

This issue appeared to have been fixed a few weeks ago but recently it’s come back with a vengeance and is occurring a lot more frequently than before.

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