Deep Index API BSC Balances check failure

Curl Tested with the Tool from Moralis Dashboard.

curl -X 'GET' \
  'https://{server_endpoint}.moralis.io:2053/api/account/erc20/balances?chain=bsc&chain_name=mainnet&address={address_of_the_user}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ...

Result:

Failed to fetch.
Possible Reasons:

  • CORS
  • Network Failure
  • URL scheme must be “http” or “https” for CORS request.

The same type of request (with the same bearer token) for erc20/eth/ works without issues.
Do we need to enable some specific plugins for BSC or some extra header need to be added that is not being added by the Moralis API tool?

PS (polygon path also works without issues)

1 Like

What server version are you using? (Have you tried updating it?)
Also what address are you trying to look up?

The version of the server was: 0.0.238
I clicked update the server, it spun for a couple of minutes and still showed the same version:
0.0.238
I guess redeployment of the same version of the server helped to resolve the issue.

Thank you for the quick follow-up!

1 Like