Hi,
I see a lot of CORS-related issues here, and got one myself.
Everything works fine if I use eth chain, but accessing my ganache local instance seems to have some issues with some calls, not all of them. This call will not work:
Log:
2021-09-13T07:20:09.552Z - Error: [object Object]
at fetch (/moralis-server/lib/cloud-code/plugins/convenience/web3Api.js:238:11)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
2021-09-13T07:20:09.549Z - Failed running cloud function getNFTsForContract for user OXNA78LM3DzB080qjfGLpfWH with:
Input: {āchainā:āganacheā,āaddressā:ā0xffe0af711d591f5da9d9b3374814ee63db97123aā,ātoken_addressā:ā0xD5D0Dd3C4b0b8bF21472f80e7d547e7FeFFEbc2cā}
Error: {āmessageā:"[object Object]",ācodeā:141}
The error msg is not really clear as it returns an object.
Origin is: http://localhost:4200
Moralis-Server is updated to the newest version.
The Request error is the typical "Access-Control-Allow-Originā missing.
This only happens when calling that method. I get no response at all and the request will just time out after some time with a 504 Gateway timeout.Other things work like user auth, and moralis records those things correctly.
Things seem to be set up correctly and work, but not for this request. Havenāt tested any other things.
Am I missing something?