[SOLVED] "Unable to connect to the Parse API" on NodeJS

I’ve attempted to run Moralis on NodeJS but I keep getting this error:

ParseError: XMLHttpRequest failed: "Unable to connect to the Parse API"
    at handleError (C:\Users\38976\node_modules\moralis\lib\node\RESTController.js:436:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 100

What is your code? Usually this error means that you didn’t set Application ID and SERVER_URL.

const Moralis = require(‘moralis/node’);


Moralis.serverURL = ‘ServerURL’;

Both are set but can’t get it to initialize. This APPID and ServerURL work on the web version but not on nodejs

This works fine for me:

x = async () => {
    const  Moralis = require('moralis/node')
    Moralis.serverURL = "SERVER_URL"
    const options = {address: "0xe9e7cea3dedca5984780bafc599bd69add087d56", chain: "bsc"}
    tokenInfo = await Moralis.Web3API.token.getTokenPrice(options)


Just tried this but still the same error

what you get if you run this:

const Moralis = require('moralis/node')

Found the issue. The connection was failing because I had proxy running on the background.