ScopeLift / kaspa-wallet

👝 A web wallet for the Kaspa blockchain network
4 stars 2 forks source link

Get Working On Testnet #74

Open apbendi opened 4 years ago

apbendi commented 4 years ago

Issue 1.2

Pending feedback on CORS/504 issues from Kaspa team

ey51 commented 4 years ago

@apbendi could you please share if and why the wallet works well with a local kasparov from the KDX environment, but not with a remote Kasparov? Does it have to do with the number of UTXO queried, network configuration, other reason?

apbendi commented 4 years ago

GET transactions/address/:address When this response goes through (status code 200) there is no CORS error. But if I try to fetch for multiple addresses at a time, there is a decent chance that some of them will 504 gateway timeout, and on these responses there are CORS errors. I have attached a screenshot.

kaspa-failures-1

kaspa-failures-2

To try this out, visit: https://codesandbox.io/s/cocky-frost-jueo7?file=/src/stuff.js and click the "Get Transactions" button. Open your JavaScript console to see the errors.

The same calls do not cause an error on KDX. This leads me to believe it may be a server configuration issue of some kind. Do you have rate limiting or load balancing configured on your server? Something else in your nginx or apache config? My guess something like that is the source of the error. But it's just a guess.