Closed twilson63 closed 2 years ago
Hey, thanks, I'll take a look...we've decided at some point to stop using the gateway.redstone.finance domain - to not be dependant on a centralised domain service (which once have failed us)...anyway, I'll try to verify what is going on, maybe it has sth to do with a cloudfront configuration.
note to myself: headers response policy should be set to Managed-CORS-With-Preflight
.
@twilson63 , I believe the issue has been fixed, can you please verify?
Confirmed, it is working! 🙏🏻
I am getting an inconsistent CORS error when trying to readState of a SmartWeave Contract, the command works inconsistently and it appears to be a result of a fetch to this CloudFront server - https://d1o5nlqr4okus2.cloudfront.net.
Here is the line of code: https://github.com/redstone-finance/redstone-smartcontracts/blob/6ad33a022527a506cdb7d0011e6bfe25004818ef/src/core/SmartWeaveBuilder.ts#L22
Should this line be pointing to https://gateway.redstone.finance instead of https://d1o5nlqr4okus2.cloudfront.net ?
Could it be that this node is just busy and the https://gateway.redstone.finance domain could balance to multiple nodes? If so, I am happy to submit a PR, if I could be using it wrong, I would be happy to correct it.
Here is my call:
You can reproduce with this demo app - https://arweave.net/IBmNAx1Q6ZF5JkiJ4bfAou6ehtHk8VPUK_406qQRz5s/