© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
2 replies
jemmyw

Unknown Error on Channel for realtime subscriptions after updating to latest libraries

I updated everything yesterday and have started getting errors from the realtime subscriptions in my test env:

Subscription error: Error: "Unknown Error on Channel"
Subscription error: Error: "Unknown Error on Channel"


This was the websocket conversation:

{
    "topic": "realtime:subscription_manager:1",
    "event": "phx_join",
    "payload": {
        "config": {
            "broadcast": {
                "ack": false,
                "self": false
            },
            "presence": {
                "key": "",
                "enabled": false
            },
            "postgres_changes": [
                {
                    "event": "*",
                    "schema": "public",
                    "table": "club_permissions"
                }
            ],
            "private": false
        }
    },
    "ref": "1",
    "join_ref": "1"
}
{
    "topic": "realtime:subscription_manager:1",
    "event": "phx_join",
    "payload": {
        "config": {
            "broadcast": {
                "ack": false,
                "self": false
            },
            "presence": {
                "key": "",
                "enabled": false
            },
            "postgres_changes": [
                {
                    "event": "*",
                    "schema": "public",
                    "table": "club_permissions"
                }
            ],
            "private": false
        }
    },
    "ref": "1",
    "join_ref": "1"
}


{
    "ref": "1",
    "event": "phx_reply",
    "payload": {
        "status": "error",
        "response": {
            "reason": "Unknown Error on Channel"
        }
    },
    "topic": "realtime:subscription_manager:1"
}
{
    "ref": "1",
    "event": "phx_reply",
    "payload": {
        "status": "error",
        "response": {
            "reason": "Unknown Error on Channel"
        }
    },
    "topic": "realtime:subscription_manager:1"
}


The log of the realtime docker container:

03:13:36.470 project=realtime-dev external_id=realtime-dev error_code=UnknownErrorOnChannel [error] UnknownErrorOnChannel: :invalid_token
03:13:36.470 project=realtime-dev external_id=realtime-dev error_code=UnknownErrorOnChannel [error] UnknownErrorOnChannel: :invalid_token


So it is saying the token is invalid... but that's not a normal auth token as per https://supabase.com/docs/guides/realtime/error_codes, and obviously I'm using the token to fetch all the data on the screen so it should be valid.

I've tried removing and rebuilding the whole local docker setup. Anything I can do further with this to debug it?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Error connecting to Realtime after updating local version
SupabaseSSupabase / help-and-questions
4mo ago
Types for channel subscriptions
SupabaseSSupabase / help-and-questions
4y ago
Realtime subscriptions not working
SupabaseSSupabase / help-and-questions
8mo ago
Nextjs and realtime subscriptions
SupabaseSSupabase / help-and-questions
4y ago