pendulum-chain / portal

The Pendulum/Amplitude portal UI
https://portal.pendulumchain.org/
GNU General Public License v3.0
1 stars 1 forks source link

Change batching server endpoint #621

Closed ebma closed 1 week ago

ebma commented 1 week ago

Closes #620.

Note that the deploy preview will not show the prices either as the cors setting only allows portal.pendulumchain.org to query from the endpoint. To confirm that the query works you can use curl and query it locally though.

Works

$ curl -X POST https://eu-api.pendulumchain.tech/currencies -H "Content-Type: application/json" -d '[{"blockchain": "FIAT", "symbol": "BRL-USD"}]'
[{"symbol":"BRL-USD","name":"BRL-USD","blockchain":"FIAT","supply":0,"lastUpdateTimestamp":1731676265,"price":172491116707}]%                                                                                                                        

Doesn't work

$ curl -X POST https://batching-server.pendulumchain.tech/currencies -H "Content-Type: application/json" -d '[{"blockchain": "FIAT", "symbol": "BRL-USD"}]'
curl: (60) SSL: no alternative certificate subject name matches target host name 'batching-server.pendulumchain.tech'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
netlify[bot] commented 1 week ago

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
Latest commit 58057a090dd2153fe7f59e587d9459e4c845edba
Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/673749c46961510008ae48cf
Deploy Preview https://deploy-preview-621--rococo-souffle-a625f5.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.