Skip to content

fix(realtime): clarify httpSend() 404 error and server migration note#2444

Merged
mandarini merged 1 commit into
masterfrom
fix/realtime-httpsend-version-error
Jun 12, 2026
Merged

fix(realtime): clarify httpSend() 404 error and server migration note#2444
mandarini merged 1 commit into
masterfrom
fix/realtime-httpsend-version-error

Conversation

@mandarini

@mandarini mandarini commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Follow-up to @holm's comment on #2400: when httpSend() hits a Realtime server older than v2.97.0, the per-event broadcast endpoint returns 404 and the client used to reject with a bare "Not Found", giving callers no way to diagnose the mismatch. This PR replaces the generic 404 rejection with an actionable message naming the v2.97.0 requirement and the two escape hatches (update the Supabase CLI, or pin a newer Realtime via supabase/.temp/realtime-version).

A companion migration note at packages/core/realtime-js/migrations/httpsend-server-version.md covers the same ground in long form (who is affected, how to verify the server version, CLI update / pin / self-host bump / downgrade options). A new unit test asserts the wording on a mocked 404.

No API surface or behavior change beyond the error string: the rejection still throws an Error and the success path is unchanged.

@github-actions github-actions Bot added the realtime-js Related to the realtime-js library. label Jun 11, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2444

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2444

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2444

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2444

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2444

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2444

commit: 767a71a

@mandarini mandarini marked this pull request as ready for review June 11, 2026 14:27
@mandarini mandarini requested review from a team as code owners June 11, 2026 14:27
@mandarini mandarini self-assigned this Jun 11, 2026
@mandarini mandarini requested a review from edgurgel June 11, 2026 14:27

@edgurgel edgurgel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@mandarini mandarini merged commit ff3a91e into master Jun 12, 2026
25 of 26 checks passed
@mandarini mandarini deleted the fix/realtime-httpsend-version-error branch June 12, 2026 06:12
mandarini pushed a commit to supabase/supabase that referenced this pull request Jun 16, 2026
This PR updates @supabase/*-js libraries to version 2.108.2.

**Source**: supabase-js-stable-release

**Changes**:
- Updated @supabase/supabase-js to 2.108.2
- Updated @supabase/auth-js to 2.108.2
- Updated @supabase/realtime-js to 2.108.2
- Updated @supabase/postgest-js to 2.108.2
- Refreshed pnpm-lock.yaml

---

## Release Notes

## v2.108.2

## 2.108.2 (2026-06-15)

### 🩹 Fixes

- **auth:** preserve valid session on refresh failure and cooldown
repeat failures
([#2436](supabase/supabase-js#2436))
- **realtime:** clarify httpSend() 404 error and server migration note
([#2444](supabase/supabase-js#2444))
- **release:** pin Deno and bound JSR publish to survive stranded-task
hangs ([#2439](supabase/supabase-js#2439))
- **release:** restore JSR publish flags and enable for beta
([#2440](supabase/supabase-js#2440))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
## v2.108.1

## 2.108.1 (2026-06-09)

### 🩹 Fixes

- **ci:** forward DOGFOOD_APP_CLIENT_ID to dogfood workflow
([#2434](supabase/supabase-js#2434))
- **postgrest:** then typing
([#2349](supabase/supabase-js#2349))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
- Vaibhav @7ttp

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

realtime-js Related to the realtime-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants