X Tutup
Skip to content

[Bug] Twitch.TV OAuth2 fails to connect, returning HTTP 404. #1872

@RokeJulianLockhart

Description

@RokeJulianLockhart

What The Problem Is

At itch.io/user/settings/connected-accounts#connected_accounts_9652132, if I click() //button[text()="Sign in with Twitch"], I am location.assign'd to https://api.twitch.tv/kraken/oauth2/authorize?response_type=code&client_id=oft9qaq9f3oiw15glhy2w65p5it5b8&force_verify=true&scope=user_read&state=WyJnMGt3IiwxNzcxNzExMjMwLCJWenJaYXhoRk10NGhENnkiXQ%3D%3D.y3%2Byw9n9Rs1pZXRC2r1cl8mHQ%2Bw%3D&redirect_uri=https%3A%2F%2Fitch.io%2Flogin-with-twitch, which returns a 404:

@.Date.20260221T231303+0000.Type.Video.Origin.Connected.accounts.-.Account.settings.-.itch.io.Firefox.Nightly.webm

Details

In #toolbox-tab-netmonitor, I observe:

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "Firefox",
      "version": "149.0a1"
    },
    "browser": {
      "name": "Firefox",
      "version": "149.0a1"
    },
    "pages": [
      {
        "id": "page_1",
        "pageTimings": {
          "onContentLoad": -4734,
          "onLoad": -1771715373461
        },
        "startedDateTime": "2026-02-21T23:09:33.461+00:00",
        "title": "https://api.twitch.tv/kraken/oauth2/authorize?response_type=code&client_id=oft9qaq9f3oiw15glhy2w65p5it5b8&force_verify=true&scope=user_read&state=WyJnMGt3IiwxNzcxNzExMjMwLCJWenJaYXhoRk10NGhENnkiXQ%3D%3D.y3%2Byw9n9Rs1pZXRC2r1cl8mHQ%2Bw%3D&redirect_uri=https%3A%2F%2Fitch.io%2Flogin-with-twitch"
      }
    ],
    "entries": [
      {
        "startedDateTime": "2026-02-21T23:09:33.461+00:00",
        "request": {
          "bodySize": 0,
          "method": "GET",
          "url": "https://api.twitch.tv/kraken/oauth2/authorize?response_type=code&client_id=oft9qaq9f3oiw15glhy2w65p5it5b8&force_verify=true&scope=user_read&state=WyJnMGt3IiwxNzcxNzExMjMwLCJWenJaYXhoRk10NGhENnkiXQ%3D%3D.y3%2Byw9n9Rs1pZXRC2r1cl8mHQ%2Bw%3D&redirect_uri=https%3A%2F%2Fitch.io%2Flogin-with-twitch",
          "httpVersion": "HTTP/3",
          "headers": [
            {
              "name": "Host",
              "value": "api.twitch.tv"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0"
            },
            {
              "name": "Accept",
              "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
            },
            {
              "name": "Accept-Language",
              "value": "en-GB,en;q=0.9,en-US;q=0.8"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, br, zstd"
            },
            {
              "name": "Referer",
              "value": "https://itch.io/user/settings/connected-accounts"
            },
            {
              "name": "Alt-Used",
              "value": "api.twitch.tv"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Upgrade-Insecure-Requests",
              "value": "1"
            },
            {
              "name": "Sec-Fetch-Dest",
              "value": "document"
            },
            {
              "name": "Sec-Fetch-Mode",
              "value": "navigate"
            },
            {
              "name": "Sec-Fetch-Site",
              "value": "cross-site"
            },
            {
              "name": "Sec-Fetch-User",
              "value": "?1"
            },
            {
              "name": "Priority",
              "value": "u=0, i"
            },
            {
              "name": "TE",
              "value": "trailers"
            }
          ],
          "cookies": [],
          "queryString": [
            {
              "name": "response_type",
              "value": "code"
            },
            {
              "name": "client_id",
              "value": "oft9qaq9f3oiw15glhy2w65p5it5b8"
            },
            {
              "name": "force_verify",
              "value": "true"
            },
            {
              "name": "scope",
              "value": "user_read"
            },
            {
              "name": "state",
              "value": "WyJnMGt3IiwxNzcxNzExMjMwLCJWenJaYXhoRk10NGhENnkiXQ==.y3+yw9n9Rs1pZXRC2r1cl8mHQ+w="
            },
            {
              "name": "redirect_uri",
              "value": "https://itch.io/login-with-twitch"
            }
          ],
          "headersSize": 809
        },
        "response": {
          "status": 404,
          "statusText": "",
          "httpVersion": "HTTP/3",
          "headers": [
            {
              "name": "content-type",
              "value": "text/plain; charset=utf-8"
            },
            {
              "name": "content-length",
              "value": "0"
            },
            {
              "name": "strict-transport-security",
              "value": "max-age=300; includeSubDomains"
            },
            {
              "name": "server",
              "value": "awselb/2.0"
            },
            {
              "name": "date",
              "value": "Sat, 21 Feb 2026 23:09:33 GMT"
            },
            {
              "name": "x-cache",
              "value": "Error from cloudfront"
            },
            {
              "name": "via",
              "value": "1.1 4b013c7faa6d55b378d4d3bac52488f2.cloudfront.net (CloudFront)"
            },
            {
              "name": "x-amz-cf-pop",
              "value": "LHR95-P2"
            },
            {
              "name": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            },
            {
              "name": "x-amz-cf-id",
              "value": "4qJ6Lw6lVRfEHBQFtl1xBHVnDVKElGGYzdngTTqHRI7Seg0l8bM38w=="
            }
          ],
          "cookies": [],
          "content": {
            "mimeType": "text/plain; charset=utf-8",
            "size": 0,
            "text": ""
          },
          "redirectURL": "",
          "headersSize": 419,
          "bodySize": 419
        },
        "cache": {},
        "timings": {
          "blocked": -1,
          "dns": 0,
          "connect": 0,
          "ssl": 0,
          "send": 0,
          "wait": 148,
          "receive": 0
        },
        "time": 148,
        "_securityState": "secure",
        "serverIPAddress": "52.222.177.74",
        "connection": "443",
        "pageref": "page_1"
      }
    ]
  }
}

My Accounts

My Environment

Name        : firefox-nightly
Version     : 149.0a1
Release     : 20260221090124
Architecture: x86_64
Install Date: Sat 21 Feb 2026 19:36:48 GMT
Size        : 377529361
Signature   : (none)
Source RPM  : firefox-nightly-149.0a1-20260221090124.src.rpm
Build Date  : Sat 21 Feb 2026 10:58:01 GMT
Build Host  : 1dffce543d26
Vendor      : Mozilla

Reposts

itch.io/t/5984035/3-oauth-connections-are-inoperable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup