Skip to main content
← Back to list
01Issue
BugShippedSwamp Club
Assigneesstack72

Accept-invite link returns HTML instead of JSON, breaking collective join

Opened by martinwhite1617 · 4/22/2026· Shipped 4/22/2026

Description

Clicking an accept-invite link for a collective fails with a client-side JSON parse error. The server appears to be returning an HTML page (likely a login redirect or error page) to a request that expects JSON, so the frontend throws when trying to parse it.

Steps to Reproduce

  1. Open the accept-invite link for the hivemq collective: https://swamp.club/o/hivemq/accept-invite?id=69e8e0da03546a963de15f932
  2. Page attempts to process the invite
  3. Error is shown: ERR:Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Expected Behaviour

I should be joined to the hivemq collective (or shown a clear actionable error if the invite is invalid/expired/requires auth).

Actual Behaviour

The invite flow fails with a raw JSON-parse error. The <!DOCTYPE prefix in the error suggests the endpoint returned HTML (e.g. an auth redirect or 404/500 page) where the frontend expected JSON.

Environment

Notes

Likely fixes: ensure the accept-invite endpoint always returns JSON (including for auth-required and error cases), and/or have the frontend detect non-JSON responses and surface a friendly message instead of the parse error.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

4/22/2026, 3:32:11 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack724/22/2026, 3:11:38 PM

Sign in to post a ripple.