From 876c3f9037f74ffc186505984df9b5e862bd71ce Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 28 May 2026 22:41:26 +0000 Subject: [PATCH] Fix Market page error from trailing slash in Fear & Greed API path The Fear & Greed Index request used the path '/fng/' with a trailing slash. sanitizeProviderPathname() in blockchain-api.ts rejects empty path segments, so the trailing slash threw 'Disallowed provider URL path.' Since all four market provider calls run in a single Promise.all, this rejection failed the entire Market page. Drop the trailing slash; api.alternative.me/fng?limit=1 returns the same payload. --- src/lib/market.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/market.ts b/src/lib/market.ts index 5e25c43..3f8f949 100644 --- a/src/lib/market.ts +++ b/src/lib/market.ts @@ -22,7 +22,7 @@ export async function getMarketPageData(range: string = '1', currency: Currency fetchJson('coingecko', '/api/v3/coins/markets', { vs_currency: currencyCode, ids: 'bitcoin' }, {}, 60), fetchJson('coingecko', '/api/v3/coins/bitcoin/market_chart', { vs_currency: currencyCode, days: String(daysForChart) }, {}, revalidateInSeconds), fetchJson('coingecko', '/api/v3/coins/bitcoin/ohlc', { vs_currency: currencyCode, days: String(daysForChart) }, {}, revalidateInSeconds), - fetchJson('alternative_me', '/fng/', { limit: '1' }, {}, 3600), + fetchJson('alternative_me', '/fng', { limit: '1' }, {}, 3600), ]); const marketInfo = marketDataResponse[0];