POST 400 Uncaught {code: 141, error: 'Error: required param address not provided'}

I seem to be having a problem as I am being continuously being promoted with POST 400 Uncaught {code: 141, error: ‘Error: required param address not provided’} whenever I run my script.

My code was working fine several hours ago and stopped working now when I haven’t made any changes to my code. I updated the server but the issue still persists.

After some digging I figured that the error is triggered when I run the following code within my functions:

 window.web3 = await Moralis.enable();
let network = await Moralis.Web3API.account.getTransactions({ chain: 'bsc'});

Using await Moralis.enableWeb3(); instead of await Moralis.enable(); should fix your problem.