No, this depends on your reverse proxy configuration
I’ve temporary disabled the edge caches, and the fix on its way.
however, it has to be released, then deployed etc.
I am using online IDEs and seems both are having issues with CORS trying to reach remote compiler:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://latest.compiler.aepps.com/decode-call-result. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Compiler has been updated to 4.2.1
$ curl https://compiler.aepps.com/api-version -H "Sophia-Compiler-Version: 4.2.0"
{"api-version":"4.2.1"}
Also latest point to that version as well:
$ curl https://latest.compiler.aepps.com/api-version
{"api-version":"4.2.1"}
Please note I’m using the api-version above as the sophia compiler version is the same (4.2.0) as it hasn’t been updated in this API bugfix release.
$ curl https://latest.compiler.aepps.com/version
{"version":"4.2.0"}
To be fair it is the same compiler, so just bumping the API-version sounds right.
Maybe you should provide more details.
@dincho.chain sure
So compiling and testing at Contracts Aepp
contract MapTest =
record state = { tMap : map(int, int) }
stateful entrypoint init() = { tMap = {} }
entrypoint getMapPositive(index: int) =
state.tMap[index = 5]
entrypoint getMapNegative(index: int) =
state.tMap[index = -5]
The weird thing is that getMapPositive(8) returns 5 as expected, but getMapNegative(8) returns: Unknown error and in the browser console I get:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://latest.compiler.aepps.com/decode-call-result. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
I’m looking into it right now, looks like HTTP compiler issue to me that throws 500 error, not directly related to CORS.
See Exception error: {encode_expr_todo,'-'} · Issue #59 · aeternity/aesophia_http · GitHub
thanks! i will use my local full node in the meantime, just for the community in general i think it is very useful that online IDE works properly, as people can start experimenting with sophia right away ^^
There is no doubt that we should have easy to use tools (and properly working) to onboard new developers
Hey, this nasty issue makes me wanna cry already @dincho.chain
Access to XMLHttpRequest at 'https://compiler.aepps.com/decode-call-result' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
It should be fixed in latest version at latest.compiler.aepps.com
some time ago already
so it still wont work in IDE until http compiler is released and deployed?
Will do. The fix is work in progress.