[SOLVED] Error code 141 with getNativeBalance


I want to report an issue with the getNativeBalance method. Yesterday was working fine, but today is giving the next error:

(node:9961) UnhandledPromiseRejectionWarning: Error: [object Object]
     at handleError (/node_modules/moralis/lib/node/RESTController.js:429:17)
     at runMicrotasks (<anonymous>)
     at processTicksAndRejections (internal/process/task_queues.js:95:5)

I had this issue in the past with the method named getAllERC20, but now I am receiving this with this method that never failed in the past.

Here is my code:

const walletBalanceETH = await Moralis.Web3API.account.getNativeBalance({ address: walletAddress, chain: 'rinkeby' })

What I am doing wrong? In advance thanks a lot

It looks like it is a problem on our side, Iโ€™ll get back with updates

Thanks, working now. There is a way to avoid this or is better to report the issue?

It was an internal problem at Moralis, it is fixed now, it is fine to report here. Thanks for reporting.

If it helps you, always a pleasure to help projects like yours.

Hi, today this error is appearing again, I am reporting in order to let you know to know if you can fix it. In advance thanks.

you still getting it now?
it was a problem few minutes ago

1 Like

Fixed, thanks a lot :slight_smile:

1 Like

hello, im getting an error with getNativeBalance function, it seems to be POST 400 problem or something like that.
hereโ€™s my code :
const ropstenbalance = await Moralis.Web3API.account.getNativeBalance({chain: โ€œropstenโ€});