oxen-io / oxen-observer

Python based Oxen blockchain explorer
GNU General Public License v3.0
13 stars 28 forks source link

https://oxen.observer/api/price/USD stops working #15

Closed ghost closed 1 year ago

ghost commented 1 year ago

I originally reported https://github.com/oxen-io/oxen-mobile-wallet/issues/32 but now I think the problem is in the official observer API: https://oxen.observer/

The official server doesn't work for a long time:

$ curl https://oxen.observer/api/price/USD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

The upstream API provider works fine:

$ curl 'https://api.coingecko.com/api/v3/simple/price?ids=loki-network&vs_currencies=USD'
{"loki-network":{"usd":0.175709}}

@ianmacd's fork also works fine for me:

$ curl https://oxen.caliban.org/api/price/USD

{"usd":0.175718}
ghost commented 1 year ago

Is it caused by a rate limit from https://api.coingecko.com? Otherwise I don't understand why Ian's observer fork works but the official observer doesn't work.

ghost commented 1 year ago

Fixed, thanks @KeeJef and @jagerman !