Hi,
I’m wondering if someone can please help us.
We are using the Etherium boilerplate project here https://github.com/ethereum-boilerplate/ethereum-boilerplate (lets call this EBP)
We are running Ganash locally and have set up the frp reverse proxy. When we look in the moralis dashboard “devchain proxy server”, we show as “connected”.
In metamask we have imported an account using a private key from Ganash. Metamask is showing that we have 100 Eth in the account. We then use this account to authenticate with EBP.
The issue occurs when we navigate to the “Wallet” tab in EBP. We see a 400 error from the getTokenBalanes endpoint.
The curl genreated by Chrome is:
curl ‘https://42sf9cpyfott.usemoralis.com:2053/server/functions/getTokenBalances’
-H ‘Connection: keep-alive’
-H ‘Pragma: no-cache’
-H ‘Cache-Control: no-cache’
-H ‘sec-ch-ua: “Google Chrome”;v=“95”, “Chromium”;v=“95”, “;Not A Brand”;v=“99”’
-H ‘Accept: application/json’
-H ‘DNT: 1’
-H ‘Content-Type: application/json’
-H ‘sec-ch-ua-mobile: ?0’
-H ‘User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36’
-H ‘sec-ch-ua-platform: “Windows”’
-H ‘Origin: http://localhost:3000/’
-H ‘Sec-Fetch-Site: cross-site’
-H ‘Sec-Fetch-Mode: cors’
-H ‘Sec-Fetch-Dest: empty’
-H ‘Referer: http://localhost:3000/’
-H ‘Accept-Language: en-AU,en;q=0.9,en-US;q=0.8’
–data-raw ‘{“address”:“0xce24fa85beea429ef601534151db39f0597c81cd”,“chain”:“0x539”}’
–compressed
When we look in the Moralis dashboard we see the following error.
Error received
2021-11-02T01:29:12.296Z - Failed running cloud function getTokenBalances for user undefined with:
Input: {“address”:“0xce24fa85beea429ef601534151db39f0597c81cd”,“chain”:“0x539”}
Error: {“message”:"[object Object]",“code”:141}
Can someone please see what we’re doing wrong?