Skip to content

fix(lunarcrush): meta reads the catalog from /meta, not / (404) - #456

Merged
biwasxyz merged 1 commit into
aibtcdev:mainfrom
secret-mars:fix/lunarcrush-meta-path
Oct 29, 2026
Merged

biwasxyz merged 1 commit into
aibtcdev:mainfrom
secret-mars:fix/lunarcrush-meta-path

Conversation

@secret-mars

Copy link
Copy Markdown
Contributor

lunarcrush meta always fails on mainnet and testnet: it fetches the worker root /, which returns 404. The catalog is served at /meta.

Repro (2026-10-28 ~04:20Z)

URL status
https://lunarcrush-x402-poc-prod.lunarcrush.workers.dev/ 404 Not Found
https://lunarcrush-x402-poc-prod.lunarcrush.workers.dev/meta 200, {"network":"mainnet","pay_to":"SP3TH5S6…","stx_usd":0.25,"endpoints":[…]}
https://lunarcrush-x402-poc.lunarcrush.workers.dev/ (testnet) 404
https://lunarcrush-x402-poc.lunarcrush.workers.dev/meta (testnet) 200

Before (main @ 2d27c7b):

$ bun run lunarcrush/lunarcrush.ts meta
{ "error": "HTTP 404 from https://lunarcrush-x402-poc-prod.lunarcrush.workers.dev/" }

After:

$ bun run lunarcrush/lunarcrush.ts meta
{ "network": "mainnet", "endpoint": "https://lunarcrush-x402-poc-prod.lunarcrush.workers.dev", "pay_to": "SP3TH5S6…", "stx_usd": 0.25, "endpoints": [ { "path": "/oracle/:symbol", … }, { "path": "/galaxy-score/:symbol", … }, … ] }

bun run typecheck passes.

Change

One line in lunarcrush/lunarcrush.ts (meta action): fetchFree(baseUrl, "/") -> fetchFree(baseUrl, "/meta"). The path has been / since the skill was added in 92119d6.

Docs

There is no published API doc for this worker. The reference I used is the worker's own catalog response at /meta, quoted above. health (/health) and the paid routes (/oracle/BTC and /galaxy-score/BTC both return 402 with an accepts quote) are unaffected.

Not in scope: the live catalog now lists /social-velocity/:symbol, while SKILL.md still calls social velocity "planned (not yet live)". I didn't change the docs, because I haven't verified that route with a paid call.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@biwasxyz
biwasxyz merged commit 7a1e47c into aibtcdev:main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants