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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(bounties): give a missing bounty a not_found code and log a degraded submissions list
nirholasf9b75f83fd4d
diff --git a/api/_lib/pump-go.js b/api/_lib/pump-go.jsindex 509867dca..31124470d 100644--- a/api/_lib/pump-go.js+++ b/api/_lib/pump-go.js@@ -22,13 +22,15 @@ const TIMEOUT_MS = 10_000;const MAX_LIMIT = 50;// Upstream error with an HTTP status, so handlers surface a real envelope rather-// than a misleading empty list when pump.fun is down.+// than a misleading empty list when pump.fun is down. The code travels with the+// status: a bounty that does not exist is a client-side 404 (`not_found`), not+// an upstream fault, and callers branch on the code rather than the prose.export class PumpGoError extends Error {- constructor(message, status = 502) {+ constructor(message, status = 502, code = 'pump_go_upstream') {super(message);this.name = 'PumpGoError';this.status = status;- this.code = 'pump_go_upstream';+ this.code = code;}}@@ -47,7 +49,7 @@ async function pumpGoGet(path) {} catch (e) {throw new PumpGoError(`pump.fun GO unreachable: ${e.message}`, 504);}- if (res.status === 404) throw new PumpGoError('bounty not found', 404);+ if (res.status === 404) throw new PumpGoError('bounty not found', 404, 'not_found');if (!res.ok) throw new PumpGoError(`pump.fun GO upstream ${res.status}`, 502);try {return await res.json();diff --git a/api/pump-bounties/[id].js b/api/pump-bounties/[id].jsindex 7149e8cbc..e1af76dd5 100644--- a/api/pump-bounties/[id].js+++ b/api/pump-bounties/[id].js@@ -28,7 +28,12 @@ export default wrap(async (req, res) => {try {[bounty, submissions] = await Promise.all([getBounty(id),- getSubmissions(id, { limit: 50 }).catch(() => ({ items: [], nextCursor: null })),+ getSubmissions(id, { limit: 50 }).catch((e) => {+ // Degrading to an empty list is deliberate, but a silent degrade hides a+ // real pump.fun outage behind a page that just looks unpopular. Log it.+ console.warn(`[pump-bounties] submissions for ${id} unavailable: ${e.message}`);+ return { items: [], nextCursor: null };+ }),]);} catch (e) {if (e instanceof PumpGoError) return error(res, e.status, e.code, e.message);