Get Working On Testnet
Opened this issue · 2 comments
Issue 1.2
Pending feedback on CORS/504 issues from Kaspa team
@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?
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.
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.