Skip to content

EventSub WebSocket REST endpoints showing subscriptions when not necessary #265

@Xemdo

Description

@Xemdo

What is the problem?

The documentation describes the behavior of GET /helix/eventsub/subscriptions as such:

NOTE The GET API includes WebSocket subscriptions that were disabled within the last 1 hour only as compared to webhooks which returns disabled subsriptions for a maximum of up to 10 days.

There's no filtering on

Operating System

All

Architecture Version (x86, x64, arm, etc)

All

Steps to reproduce

  1. Connect a socket
  2. Create a subscription with POST /eventsub/subscriptions
  3. Disconnect the socket
  4. Wait 61 minutes
  5. Call GET /eventsub/subscriptions using the previous socket's ID
  6. Observe that the subscriptions are still reported

Relevant log output

{
  "total": 1,
  "total_cost": 0,
  "max_total_cost": 10,
  "pagination": {
  },
  "data": [
    {
      "id": "4ofh8m0706jqpholgk00u3xvb4spct",
      "status": "websocket_disconnected",
      "type": "channel.update",
      "version": "1",
      "created_at": "2023-08-19T08:08:40.4428194Z",
      "cost": 0,
      "condition": {
        "broadcaster_user_id": "57047445"
      },
      "transport": {
        "method": "websocket",
        "session_id": "ab62a4db_4c077969",
        "disconnected_at": "2023-08-19T08:10:15.9758602Z"
      }
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions