From 77a0ef041fa32efb5a9480287e046e08acfd5d28 Mon Sep 17 00:00:00 2001 From: Andrew Baerg Date: Thu, 15 Jan 2026 17:19:18 -0700 Subject: [PATCH] Add User-Agent header to Coingecko request requests to Coingecko are failing with 403 Forbidden: Please add a descriptive User-Agent to your request. For higher rate limits & stable integration, please subscribe to our API plans: https://www.coingecko.com/en/api/pricing . If you think this is a mistake, please report here: https://forms.gle/3V2z8Mb3k2RMu5S2A --- src/lib/exchange-rate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/exchange-rate.js b/src/lib/exchange-rate.js index 33f2040..8aa4634 100644 --- a/src/lib/exchange-rate.js +++ b/src/lib/exchange-rate.js @@ -29,6 +29,7 @@ const getRateBitstamp = currency => const getRateCoingecko = currency => request.get(`https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=${enc(currency)}`) + .set('User-Agent','lightning-charge/0.4') .proxy(RATE_PROXY) .then(res => res.body.bitcoin[currency.toLowerCase()] || Promise.reject(`Unknown currency: ${currency}`))