Trying out nodejs. Ran into some problem while setting moralis up.
const Moralis = require("moralis/node");
Moralis.start({ serverUrl, appId, masterKey }); // tried both with and without the master key
await Moralis.Cloud.run("getData");
Returns error: 'XMLHttpRequest failed: "Unable to connect to the Parse API"'
Any idea what might be the problem?
I also tried fetching tokenPrice. But it returns an error of
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
I did look at other threads in the forum but it did not help.
Moralis.CoreManager.get("VERSION") returns js0.0.178
Thank you for the help!