Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix: never forward an unvalidated Solana RPC body through failover

miniaturization79fa416c550a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e53c1d166..b2f660147 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,13 +22,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Authorize $THREE once, then pay with no wallet popups** — The $THREE page now lets you set a spending allowance: approve a cap once, and paid actions across the platform — forge, skills, names, cosmetics — debit it automatically without asking you to sign every time. It's non-custodial and built on Solana's native, audited Subscriptions & Allowances program: your tokens stay in your own wallet until a charge pulls them, never more than the cap you set, and you can let it expire or revoke it anytime. Set a cap, top it up, or leave it off and keep signing each payment — your choice. (`/three-token`) `[feature]`
- **Avatar Studio: full-spectrum color picker and one-tap Looks** — The Color tab in Avatar Studio is no longer limited to a fixed row of swatches. Tap the rainbow chip on any of skin, hair, or outfit and a real color wheel opens — drag for any hue, slide for brightness, type or paste an exact hex code, or use the eyedropper to sample any color on your screen (where your browser supports it). Every color you pick is remembered in a 'Recent' strip so a palette carries from one part of the avatar to the next, and between sessions. New 'Looks' sit above the colors too: one tap themes skin, hair, and outfit together — Noir, Sunset, Arctic, Cyber, Rosé, Forest, Mono, Ember — and a whole picking session counts as a single undo. The wheel loads only when you open it, so the studio stays fast. (`/avatar-studio`) `[feature, improvement]`
- **Clearer empty state on the $THREE live-trades feed** — Before the next trade lands, the live-trades panel on the $THREE token page now reads in plain language — 'Live trades will appear here' — with a short note on what it shows, and the technical detail tucked behind an info tooltip. Screen readers announce new trades as they stream in. (`/three-token`) `[improvement]`
-- **Club door payment no longer fails when an RPC node blips** — Paying the cover charge to enter the Pole Club builds a Solana transaction the moment you authorize, and that step reads a fresh blockhash from the network. If every Solana node we try is momentarily throttled in that instant, the door used to fail with an opaque "internal error" right after you confirmed the price — even though nothing was charged. The door now keeps a recent blockhash on hand and reuses it through a brief outage, so a transient node hiccup no longer turns you away. It still refuses only when there's genuinely no valid blockhash to build with. `[fix, infra]`
- **Coin pages stay fast when pump.fun is having a moment** — The /launches coin page pulls creator fee-sharing earnings live from pump.fun. We put that call behind a circuit breaker (built on the well-tested cockatiel library rather than home-grown code): if pump.fun slows down or errors, the breaker trips after a few failures and the page instantly skips that one enrichment instead of every visitor waiting out the timeout. The earnings simply show as unavailable until pump.fun recovers, and the rest of the page — registry, intel, outcome, trader record — was never affected. Same approach is now available platform-wide for other third-party data sources. (`/launches`) `[infra, improvement]`
- **Discover and character feeds load faster under heavy traffic** — The Discover grid and the published-agents (Characters) feed now serve from the edge cache, so a surge of visitors is absorbed at the CDN instead of re-running a database scan on every request. Pages stay fast and consistent even during a rush, and a stale-while-revalidate window keeps them warm between refreshes. (`/discover`) `[improvement, infra]`
- **Discover and Marketplace now browse the same way** — Searching, filtering, and sorting agents now work identically on /discover and /marketplace. Both pages share one polished control bar — debounced search, filter chips, and sort — and your choices are saved in the page address, so a filtered view is shareable and the browser back button restores it. Loading, empty, and error states were unified too: a search that matches nothing shows a clear 'no results' panel with a one-click 'Clear filters', and a failed load offers a retry instead of a blank grid. (`/discover`) `[improvement]`
- **Empty pages now guide you instead of going blank** — Across the dashboard and marketplace, anywhere a list can be empty now explains what belongs there, why it's useful, and the next step — instead of a bare 'No data' line. Your Agents, Avatars, Analytics, Brain, embed policies, the marketplace, and My Agents each greet a fresh account with a short plain-language intro and a clear button to create your first one (plus a 'What's an agent?' link). Filtered searches that return nothing now say so and offer to clear the filter. It's the same designed component everywhere, so the whole platform feels consistent and never abandoned. (`/dashboard`) `[improvement]`
- **Every avatar you create now auto-rigs so it can move** — A 3D model can only walk, wave, and emote if it has a skeleton. Until now only prompt and selfie avatars got one automatically — a GLB you uploaded, imported by link, or generated in chat would land as a frozen statue. Now every creation path auto-rigs: drop in a static model and the platform quietly builds a skeleton in the background and swaps the animation-ready version in place, so the avatar (and the agent it backs) can play the full motion library. Models that already carry a skeleton — like Avaturn characters — are left untouched, never re-rigged. If rigging isn't available on a deployment, you still get your model, exactly as before. `[feature, improvement]`
- **Every Forge quality tier now runs on free engines** — Forge's quality tiers — Draft, Standard, and High — all generate on zero-cost engines now: Draft and Standard on the fast free NVIDIA lane, and High on the higher-fidelity, fully textured free HuggingFace engine. Higher tiers buy you genuinely better geometry and textures, not a different bill behind the scenes. Photo-to-3D at any tier routes straight to a free engine too, so a generation never quietly falls back to a paid lane. The High tier stays a $THREE holder perk (or a one-off pay-per-use) — that's the price of premium quality, not a cost we're passing through. (`/forge`) `[improvement, feature]`
+- **Fixed: "Edit Avatar" no longer 404s** — The Edit Avatar link in the account menu was sending you to a page that didn't exist, so customizing your avatar dead-ended on a 404. It now opens the avatar editor correctly. We also pointed the "create your avatar" button (shown when you don't have one yet) straight at the avatar creator instead of an empty editor. `[fix]`
- **Follows and reviews now ring the notification bell** — Following someone now actually reaches them: when a new follower arrives, it shows up in your notification bell with a link straight to their profile. And when someone reviews one of your agents, you get a notification with their rating. Both flow through the same in-app notification center you already use for payments and sales — no new place to check. Re-following or editing an existing review won't re-notify, so the bell stays signal, not noise. (`/feed`) `[feature, improvement]`
- **Forge hardened for a traffic surge — faster loads, protected free lanes** — We scaled Forge for the influx of new users. The engine catalog and live health status now serve from the edge cache, so the page loads instantly even under heavy traffic instead of recomputing on every visit. We also added a platform-wide safety valve on paid generation: if demand ever spikes past the shared paid budget, the free engines (NVIDIA and Hugging Face) stay fully open and you get a clear 'try a free engine' message instead of a hard failure — your own bring-your-own-key engines are never affected. Net result: Forge stays fast and available as we grow, and free 3D generation never gets crowded out. (`/forge`) `[infra, improvement]`
- **Forge scales further — duplicate generations collapse, free lane protected, prices shown up front** — More headroom for the influx. Forge now recognizes when the same prompt or photo set is already generating and quietly hands everyone the same result instead of paying to build it twice — so a viral prompt or a double-click no longer multiplies cost or wait. The free Hugging Face engine is now capped to a safe number of simultaneous jobs so a rush can't tie up the servers and stall everyone; over the cap, your generation cleanly falls back to another engine instead of hanging. The composer now shows the real price before you generate — 'Free' for Draft and Standard, the exact dollar amount (or 'Free, you hold $THREE') for High, and 'billed to your own key' for bring-your-own-key engines — so there are no surprises. The engine picker also gained a small legend explaining the badges at a glance — which engines are free, which use your own key, and which are busy or unavailable. And the 3D viewer now shows a loading shimmer instead of a dark void while your model paints in. (`/forge`) `[improvement, infra]`
@@ -60,6 +60,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Regrinding an agent's vanity wallet no longer risks its funds** — The compact "Vanity address" card on an agent's page used to replace a wallet by deleting the old one and creating the new one separately — so if the old wallet held SOL or tokens, they could be left behind. It now uses the same money-safe path as the rest of the platform: any balance is automatically swept to the new vanity address first, and the switch only completes once the funds have moved (and only after the server confirms the new address really matches your pattern). Same one-click experience, but your funds follow the wallet. `[fix, security]`
- **Smoother landing page on hover** — The homepage's parallax hero and 3D stack-card glow used to read the page layout on every pointer move, which could make the cursor feel sticky on the first page new visitors see. Those effects now batch their work to one frame at a time, so hover and tilt stay buttery on any device. (`/`) `[improvement]`
- **Solana is now the default payment network** — Solana is now the default everywhere you pick a chain — the dashboard's Default payment network setting, x402 merchant settlement, and the monetization payout wallet all default to Solana for every user, with Solana listed first. Base and Polygon remain available if you prefer an EVM chain. (`/dashboard`) `[improvement]`
+- **Solana reads and the club door survive a degraded RPC provider** — When a Solana node answers with a 200 but an unusable body — an empty payload, an HTML error page, or a quota-exhausted reply — our network layer had one weak spot: if every node was momentarily cooling off at once, it forwarded that garbage response straight through. In the browser that showed up as broken balance and blockhash reads on the marketplace, staking, and payment screens; at the club door it could fail the cover charge with an opaque error even though nothing was charged. The network layer now validates every reply on every path and fails over to a healthy node instead of passing a bad one along, returning a clean, honest error only when every provider is genuinely down. The club door also keeps a recent blockhash on hand and reuses it through a brief blip, so paying to enter and reading on-chain balances stay reliable through provider hiccups. `[fix, infra]`
- **Solana stays online even if our paid RPC goes dark** — Everything onchain — paying, minting, balances, name lookups — depends on a Solana RPC node answering. When our primary paid node was throttled or its plan lapsed, some of those reads could error out. The platform now falls through a deeper chain: the paid node first, then several backup providers, then five independent public nodes (each verified live), so a request only fails if every one of them is down at the same moment. The embeddable payment widget and Solana name registration were moved onto the same resilient connection. `[fix, infra]`
- **The $THREE page now spells out why to hold — four real utility pillars** — The $THREE page leads with a clear "Why hold $THREE" section: revenue buybacks (a fixed, live share of platform revenue buys $THREE on the open market), holder rewards (every paid action reflects $THREE back to holders pro-rata), hold-to-access (discounts, higher quotas, and pro perks), and real usage (deploying agents, forging avatars, and trading the marketplace all run on $THREE). Each pillar maps to a mechanism that actually exists on the platform, and the buyback figure is wired to the live commitment. The page's market data also now rides a shared cache, so it stays fast and reliable under heavy traffic. (`/three-token`) `[feature, improvement]`
- **The Forge now fills the whole screen** — The Forge — where you turn text or photos into a textured 3D model — used to sit in a narrow column down the middle of the page, leaving big empty margins on wide monitors and a cramped preview. It now stretches edge to edge with comfortable side gutters, so the 3D preview gets far more room to show off your model while the controls stay put on the left. (`/forge`) `[improvement]`
diff --git a/api/_lib/solana/connection.js b/api/_lib/solana/connection.js
index f2894593d..c6e1251ce 100644
--- a/api/_lib/solana/connection.js
+++ b/api/_lib/solana/connection.js
@@ -314,11 +314,15 @@ export function shouldRotate(status) {
// one request, so the caller gets nothing back — is the only WARN.
export function makeRotatingFetch(endpoints) {
return async function rotatingFetch(_info, init) {
- let lastErr = null;
- let attempted = false;
- for (const url of endpoints) {
- if (isEndpointCooling(url)) continue;
- attempted = true;
+ // One fully-validated attempt against a single endpoint. Returns
+ // `{ response }` with a usable JSON-RPC body, or `{ error }` after parking
+ // the endpoint in cooldown so the caller rotates on. It NEVER returns an
+ // unvalidated body: a 200 carrying an empty/HTML/truncated payload, a
+ // `{jsonrpc,id}` envelope missing `result`, or a 200 + JSON-RPC capacity
+ // error is treated as a failure — web3.js would otherwise choke on it with a
+ // `StructError`, and the /api/solana-rpc proxy would forward the garbage (an
+ // empty `[]`) straight to the browser.
+ const tryEndpoint = async (url) => {
try {
const resp = await fetch(url, init);
if (shouldRotate(resp.status)) {
@@ -337,21 +341,8 @@ export function makeRotatingFetch(endpoints) {
`[solana-rpc] ${maskUrl(url)} ${resp.status} — cooling ${Math.round(ms / 60_000)}m, failing over`,
);
}
- lastErr = new Error(`solana rpc ${resp.status} @ ${maskUrl(url)}`);
- continue;
+ return { error: new Error(`solana rpc ${resp.status} @ ${maskUrl(url)}`) };
}
- // A healthy 2xx status is not a guarantee of a usable body. Under load
- // (or with an exhausted paid plan) some providers answer a JSON-RPC POST
- // with 200 + an empty payload, an HTML interstitial, a truncated body, a
- // `{jsonrpc,id}` envelope missing `result`, or a 200 + JSON-RPC capacity
- // error. web3.js runs any of those through its superstruct result schema
- // and throws `StructError: Expected the value to satisfy a union of
- // type | type, but received:` straight to the caller WITHOUT rotating,
- // because a parse error carries no rotate-worthy HTTP status — the single
- // failure mode behind the recurring StructError noise across getBalance /
- // getLatestBlockhash / getAccountInfo / getSignaturesForAddress. classify
- // the body here and fail over instead of handing web3.js something it
- // cannot parse.
const okBody = await resp.text();
const bad = classifyRpcBody(okBody);
if (bad) {
@@ -362,37 +353,51 @@ export function makeRotatingFetch(endpoints) {
`[solana-rpc] ${maskUrl(url)} ${bad.log} — cooling ${Math.round(ms / 60_000)}m, failing over`,
);
}
- lastErr = new Error(`solana rpc ${bad.reason} @ ${maskUrl(url)}`);
- continue;
+ return { error: new Error(`solana rpc ${bad.reason} @ ${maskUrl(url)}`) };
}
- // Body already consumed above; hand web3.js a fresh Response carrying
+ // Body already consumed above; hand the caller a fresh Response carrying
// the same payload. Only content-type is preserved; copying
// content-encoding/content-length would mislead the consumer since the
// transport already decoded the body into `okBody`.
- return new Response(okBody, {
- status: resp.status,
- statusText: resp.statusText,
- headers: { 'content-type': resp.headers.get('content-type') || 'application/json' },
- });
+ return {
+ response: new Response(okBody, {
+ status: resp.status,
+ statusText: resp.statusText,
+ headers: { 'content-type': resp.headers.get('content-type') || 'application/json' },
+ }),
+ };
} catch (err) {
// A thrown fetch is a transient network/DNS blip, not a quota signal —
// cool only briefly so a healthy provider isn't parked for long.
_endpointCooldown.set(url, Date.now() + NETWORK_COOLDOWN_MS);
- lastErr = err;
+ return { error: err };
}
+ };
+
+ let lastErr = null;
+ // Pass 1 skips endpoints currently in cooldown. Pass 2 runs ONLY when pass 1
+ // tried nothing (every endpoint was already cooling) — it ignores cooldowns so
+ // a just-recovered node still gets exercised. Crucially both passes route
+ // through tryEndpoint(), so the all-cooling case validates like any other and
+ // can never fall back to a raw, unvalidated passthrough — the bug that leaked
+ // an empty `[]` body straight to the browser and broke web3.js reads.
+ for (const ignoreCooldown of [false, true]) {
+ let attempted = false;
+ for (const url of endpoints) {
+ if (!ignoreCooldown && isEndpointCooling(url)) continue;
+ attempted = true;
+ const out = await tryEndpoint(url);
+ if (out.response) return out.response;
+ lastErr = out.error;
+ }
+ // Pass 1 actually exercised at least one live endpoint and they all failed
+ // this request — the chain is genuinely down right now, so don't force a
+ // second cooldown-ignoring sweep that would just re-hammer dead lanes.
+ if (!ignoreCooldown && attempted) break;
}
- // Every endpoint is cooling down. Rather than blindly re-hit the (likely
- // dead) primary, take one shot at whichever recovers soonest — its cooldown
- // may have just lapsed and it's the least-bad option.
- if (!attempted) {
- const soonest = endpoints
- .slice()
- .sort((a, b) => (_endpointCooldown.get(a) || 0) - (_endpointCooldown.get(b) || 0))[0];
- return fetch(soonest, init);
- }
- // Reached the end with every attempted provider failing in this one request —
- // the caller gets an error, not data. THIS is worth a warning: the whole
- // failover chain is down, not just one lane.
+ // Reached the end with every provider failing in this one request — the caller
+ // gets a thrown error (→ a clean 502 from the proxy), never garbage. THIS is
+ // worth a warning: the whole failover chain is down, not just one lane.
console.warn(
`[solana-rpc] all ${endpoints.length} endpoints failed this request — ${lastErr?.message || 'unknown error'}`,
);
diff --git a/api/solana-rpc.js b/api/solana-rpc.js
index 78a3d83cc..4f80b9718 100644
--- a/api/solana-rpc.js
+++ b/api/solana-rpc.js
@@ -21,6 +21,7 @@ import { limits, clientIp } from './_lib/rate-limit.js';
import {
solanaRpcEndpoints,
makeRotatingFetch,
+ classifyRpcBody,
} from './_lib/solana/connection.js';
// Methods a browser Connection needs to read balances/accounts, build, simulate,
@@ -142,6 +143,19 @@ export default wrap(async function handler(req, res) {
}
const text = await upstream.text();
+ // Defense-in-depth: the rotating fetch already validates every body it returns,
+ // but never let a malformed payload reach a browser web3.js Connection — it would
+ // throw an opaque StructError (or silently mis-read an empty `[]`) instead of a
+ // clean error the caller can handle. If the upstream body isn't a well-formed
+ // JSON-RPC response, surface an honest 502 keyed to the same JSON-RPC id.
+ if (classifyRpcBody(text)) {
+ const id = Array.isArray(body) ? null : body?.id ?? null;
+ res.statusCode = 502;
+ res.setHeader('content-type', 'application/json; charset=utf-8');
+ res.setHeader('cache-control', 'no-store');
+ res.end(JSON.stringify({ jsonrpc: '2.0', id, error: { code: -32603, message: 'rpc upstream returned an unusable response' } }));
+ return;
+ }
res.statusCode = upstream.status;
res.setHeader('content-type', 'application/json; charset=utf-8');
res.setHeader('cache-control', 'no-store');
diff --git a/data/changelog.json b/data/changelog.json
index 9dfd1947f..4d154aa90 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,23 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-21",
+ "title": "Describe-it-to-3D no longer shows a confusing third-party billing error",
+ "summary": "When you turn a text prompt into a 3D avatar, the first step paints a reference image — and that runs on the free NVIDIA lane by default. If that lane was briefly busy, the request could fall through to a paid backstop that had run out of credit, and the backstop's raw \"go purchase credit\" message leaked onto your screen. That's gone: any billing or out-of-credit hiccup on a backstop now shows a clean \"temporarily unavailable — try again later,\" the free NVIDIA lane stays the primary path, and a third party's billing page never reaches you.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/create/prompt"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Fixed: \"Edit Avatar\" no longer 404s",
+ "summary": "The Edit Avatar link in the account menu was sending you to a page that didn't exist, so customizing your avatar dead-ended on a 404. It now opens the avatar editor correctly. We also pointed the \"create your avatar\" button (shown when you don't have one yet) straight at the avatar creator instead of an empty editor.",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-21",
"title": "New tutorial: create, enhance & edit your agent's memory",
@@ -58,8 +75,8 @@
},
{
"date": "2026-06-21",
- "title": "Club door payment no longer fails when an RPC node blips",
- "summary": "Paying the cover charge to enter the Pole Club builds a Solana transaction the moment you authorize, and that step reads a fresh blockhash from the network. If every Solana node we try is momentarily throttled in that instant, the door used to fail with an opaque \"internal error\" right after you confirmed the price — even though nothing was charged. The door now keeps a recent blockhash on hand and reuses it through a brief outage, so a transient node hiccup no longer turns you away. It still refuses only when there's genuinely no valid blockhash to build with.",
+ "title": "Solana reads and the club door survive a degraded RPC provider",
+ "summary": "When a Solana node answers with a 200 but an unusable body — an empty payload, an HTML error page, or a quota-exhausted reply — our network layer had one weak spot: if every node was momentarily cooling off at once, it forwarded that garbage response straight through. In the browser that showed up as broken balance and blockhash reads on the marketplace, staking, and payment screens; at the club door it could fail the cover charge with an opaque error even though nothing was charged. The network layer now validates every reply on every path and fails over to a healthy node instead of passing a bad one along, returning a clean, honest error only when every provider is genuinely down. The club door also keeps a recent blockhash on hand and reuses it through a brief blip, so paying to enter and reading on-chain balances stay reliable through provider hiccups.",
"tags": [
"fix",
"infra"
diff --git a/public/changelog.json b/public/changelog.json
index 153726ec2..64837e1f7 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T11:06:25.035Z",
+ "generated_at": "2026-06-21T11:26:39.172Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -170,17 +170,6 @@
"improvement"
]
},
- {
- "date": "2026-06-21",
- "type": "update",
- "title": "Club door payment no longer fails when an RPC node blips",
- "summary": "Paying the cover charge to enter the Pole Club builds a Solana transaction the moment you authorize, and that step reads a fresh blockhash from the network. If every Solana node we try is momentarily throttled in that instant, the door used to fail with an opaque \"internal error\" right after you confirmed the price — even though nothing was charged. The door now keeps a recent blockhash on hand and reuses it through a brief outage, so a transient node hiccup no longer turns you away. It still refuses only when there's genuinely no valid blockhash to build with.",
- "link": null,
- "tags": [
- "fix",
- "infra"
- ]
- },
{
"date": "2026-06-21",
"type": "update",
@@ -245,6 +234,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Fixed: \"Edit Avatar\" no longer 404s",
+ "summary": "The Edit Avatar link in the account menu was sending you to a page that didn't exist, so customizing your avatar dead-ended on a 404. It now opens the avatar editor correctly. We also pointed the \"create your avatar\" button (shown when you don't have one yet) straight at the avatar creator instead of an empty editor.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -578,6 +577,17 @@
"improvement"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Solana reads and the club door survive a degraded RPC provider",
+ "summary": "When a Solana node answers with a 200 but an unusable body — an empty payload, an HTML error page, or a quota-exhausted reply — our network layer had one weak spot: if every node was momentarily cooling off at once, it forwarded that garbage response straight through. In the browser that showed up as broken balance and blockhash reads on the marketplace, staking, and payment screens; at the club door it could fail the cover charge with an opaque error even though nothing was charged. The network layer now validates every reply on every path and fails over to a healthy node instead of passing a bad one along, returning a clean, honest error only when every provider is genuinely down. The club door also keeps a recent blockhash on hand and reuses it through a brief blip, so paying to enter and reading on-chain balances stay reliable through provider hiccups.",
+ "link": null,
+ "tags": [
+ "fix",
+ "infra"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 17b28f51e..e00398d4b 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -134,14 +134,6 @@
<category>improvement</category>
<description>Before the next trade lands, the live-trades panel on the $THREE token page now reads in plain language — 'Live trades will appear here' — with a short note on what it shows, and the technical detail tucked behind an info tooltip. Screen readers announce new trades as they stream in.</description>
</item>
- <item>
- <title>Club door payment no longer fails when an RPC node blips</title>
- <link>https://three.ws/changelog</link>
- <guid isPermaLink="false">2026-06-21:Club door payment no longer fails when an RPC node blips</guid>
- <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
- <category>fix</category>
- <description>Paying the cover charge to enter the Pole Club builds a Solana transaction the moment you authorize, and that step reads a fresh blockhash from the network. If every Solana node we try is momentarily throttled in that instant, the door used to fail with an opaque &quot;internal error&quot; right after you confirmed the price — even though nothing was charged. The door now keeps a recent blockhash on hand and reuses it through a brief outage, so a transient node hiccup no longer turns you away. It still refuses only when there's genuinely no valid blockhash to build with.</description>
- </item>
<item>
<title>Coin pages stay fast when pump.fun is having a moment</title>
<link>https://three.ws/launches</link>
@@ -190,6 +182,14 @@
<category>improvement</category>
<description>Forge's quality tiers — Draft, Standard, and High — all generate on zero-cost engines now: Draft and Standard on the fast free NVIDIA lane, and High on the higher-fidelity, fully textured free HuggingFace engine. Higher tiers buy you genuinely better geometry and textures, not a different bill behind the scenes. Photo-to-3D at any tier routes straight to a free engine too, so a generation never quietly falls back to a paid lane. The High tier stays a $THREE holder perk (or a one-off pay-per-use) — that's the price of premium quality, not a cost we're passing through.</description>
</item>
+ <item>
+ <title>Fixed: &quot;Edit Avatar&quot; no longer 404s</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-21:Fixed: &quot;Edit Avatar&quot; no longer 404s</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The Edit Avatar link in the account menu was sending you to a page that didn't exist, so customizing your avatar dead-ended on a 404. It now opens the avatar editor correctly. We also pointed the &quot;create your avatar&quot; button (shown when you don't have one yet) straight at the avatar creator instead of an empty editor.</description>
+ </item>
<item>
<title>Follows and reviews now ring the notification bell</title>
<link>https://three.ws/feed</link>
@@ -438,6 +438,14 @@
<category>improvement</category>
<description>Solana is now the default everywhere you pick a chain — the dashboard's Default payment network setting, x402 merchant settlement, and the monetization payout wallet all default to Solana for every user, with Solana listed first. Base and Polygon remain available if you prefer an EVM chain.</description>
</item>
+ <item>
+ <title>Solana reads and the club door survive a degraded RPC provider</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-21:Solana reads and the club door survive a degraded RPC provider</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>When a Solana node answers with a 200 but an unusable body — an empty payload, an HTML error page, or a quota-exhausted reply — our network layer had one weak spot: if every node was momentarily cooling off at once, it forwarded that garbage response straight through. In the browser that showed up as broken balance and blockhash reads on the marketplace, staking, and payment screens; at the club door it could fail the cover charge with an opaque error even though nothing was charged. The network layer now validates every reply on every path and fails over to a healthy node instead of passing a bad one along, returning a clean, honest error only when every provider is genuinely down. The club door also keeps a recent blockhash on hand and reuses it through a brief blip, so paying to enter and reading on-chain balances stay reliable through provider hiccups.</description>
+ </item>
<item>
<title>Solana stays online even if our paid RPC goes dark</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 7a2d256c8..f6aa47048 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T11:06:24.874Z",
+ "generated_at": "2026-06-21T11:26:39.027Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/solana-rpc-rotating-fetch.test.js b/tests/solana-rpc-rotating-fetch.test.js
new file mode 100644
index 000000000..fb73420fa
--- /dev/null
+++ b/tests/solana-rpc-rotating-fetch.test.js
@@ -0,0 +1,68 @@
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
+import { makeRotatingFetch } from '../api/_lib/solana/connection.js';
+
+// A Response carrying either a raw string body or a JSON-encoded object, the way a
+// Solana RPC node answers a JSON-RPC POST.
+const resp = (body, status = 200) =>
+ new Response(typeof body === 'string' ? body : JSON.stringify(body), {
+ status,
+ headers: { 'content-type': 'application/json' },
+ });
+const VALID = { jsonrpc: '2.0', id: 1, result: { ok: true } };
+
+// makeRotatingFetch must NEVER hand its caller (web3.js Connection or the
+// /api/solana-rpc proxy) an unvalidated body. The specific production failure this
+// guards: every endpoint cooling from a prior request used to fall back to a raw,
+// unvalidated `fetch(soonest)` whose `[]` / HTML / truncated body went straight to
+// the browser, where web3.js choked with a StructError (or silently mis-read `[]`).
+describe('makeRotatingFetch — never leaks an unvalidated upstream body', () => {
+ let origFetch;
+ beforeEach(() => {
+ origFetch = global.fetch;
+ });
+ afterEach(() => {
+ global.fetch = origFetch;
+ });
+
+ it('fails over past a 200-but-empty `[]` body to the next healthy endpoint', async () => {
+ const eps = ['https://leak-a1.test/', 'https://leak-a2.test/'];
+ global.fetch = vi.fn(async (url) => (url === eps[0] ? resp('[]') : resp(VALID)));
+ const out = await makeRotatingFetch(eps)(null, { method: 'POST', body: '{}' });
+ expect((await out.json()).result).toEqual({ ok: true });
+ });
+
+ it('throws instead of returning `[]` when every endpoint yields garbage — even once all are cooling', async () => {
+ const eps = ['https://leak-b1.test/', 'https://leak-b2.test/'];
+ global.fetch = vi.fn(async () => resp('[]'));
+ const rf = makeRotatingFetch(eps);
+ // First request exercises and cools both endpoints.
+ await expect(rf(null, { method: 'POST', body: '{}' })).rejects.toThrow();
+ // Second request: both already cooling. The old code did a raw fetch(soonest)
+ // and returned the `[]`; the fixed code validates the all-cooling pass and
+ // still throws — the caller never sees an empty array.
+ await expect(rf(null, { method: 'POST', body: '{}' })).rejects.toThrow();
+ });
+
+ it('recovers on a later request when a previously-cooled endpoint starts serving valid data', async () => {
+ const eps = ['https://leak-c1.test/', 'https://leak-c2.test/'];
+ let healthy = false;
+ global.fetch = vi.fn(async () => (healthy ? resp({ ...VALID, result: 'recovered' }) : resp('[]')));
+ const rf = makeRotatingFetch(eps);
+ await expect(rf(null, { method: 'POST', body: '{}' })).rejects.toThrow(); // cools both
+ healthy = true;
+ // Both endpoints are still inside their cooldown window, so pass 1 skips them;
+ // the cooldown-ignoring second pass re-probes and returns the now-valid body.
+ const out = await rf(null, { method: 'POST', body: '{}' });
+ expect((await out.json()).result).toBe('recovered');
+ });
+
+ it('returns a well-formed JSON-RPC result straight through without rotating', async () => {
+ const eps = ['https://ok-d1.test/', 'https://ok-d2.test/'];
+ const fetchSpy = vi.fn(async () => resp(VALID));
+ global.fetch = fetchSpy;
+ const out = await makeRotatingFetch(eps)(null, { method: 'POST', body: '{}' });
+ expect((await out.json()).result).toEqual({ ok: true });
+ // First healthy endpoint answers — no failover round-trips.
+ expect(fetchSpy).toHaveBeenCalledTimes(1);
+ });
+});