[SOLVED] ERR_CONNECTION_REFUSED when accessing our web-app

Hi Moralis Team,

we have a webapp built on Moralis.
Logging in via Metamask worked fine until yesterday and there were no changes in the app, but all of a sudden I am not able to login anymore.

Console messages (I replaced the server name with XXXXXX):

Failed to load resource: net::ERR_CONNECTION_REFUSED

POST https://XXXXXX.usemoralis.com:2053/server/functions/getServerTime net::ERR_CONNECTION_REFUSED

I have already restarted the server, but still the same error.

Thx for your help in advance!

I just realized that I also cannot access the GUI dashboard on https://XXXXXX.usemoralis.com:2083/login

Can you try to see if the server is ok in admin interface?
Can you also paste that server subdomain/domain

Yes, it looks ok on the admin interface - all green.
Will send you the server in pm, ok?

Can you try a restart/update?

I have already done that.
Doing it again now.

Ok, I’ll take a close look later.

Thx cryptokid - still the same error after the 2nd restart just now.

The dashboard for that server load for me now.

Still getting the same error :frowning:

Both in our webapp and the Moralis dashboard the same error still.

Are you using a vpn? Can you try from another network?

I do not use an VPN, but just switched to a mobile hotspot and it worked.
Any ideas what I need to change in the network I am currently in that does not work? I am quite frequently working from there.

Thx for the guidance so far, cryptokid!

I don’t know exactly what you need to change. Cloudflare is used for server domains.

Sometimes it can not work if you have vpn, or if you are in a restricted network.

Ok, thx for your guidance - very fast and helpful as always :slight_smile:
Will mark the ticket as solved.


<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script>

<script src="https://unpkg.com/[email protected]/dist/moralis.js"></script>

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>




    Moralis.start({ serverUrl: "https://df5k1zindehv.usemoralis.com:2053/server", appId: "pYoxD4y9gigKtUDjWGl829pMmXPJpxbXVLyRRXLA"});

<button id="btn-login">Moralis Login</button>

<button id="btn-logout">Moralis Logout</button>

<input type="radio" name="time" id="week" value=7 checked>7</input>

<input type="radio" name="time" id="2week" value=14 >14</input>

<input type="radio" name="time" id="4week" value=30 >30</input>

<select id="list"></select>


    <canvas id="myChart"></canvas>





    let toks = [];


    async function launch(){


        let response = await fetch("https://gateway.ipfs.io/ipns/tokens.uniswap.org")

        let names = await response.json()

        toks = names.tokens;

        toks.forEach((e,i) =>

        document.getElementById("list").add(new Option(e.symbol, i))






    async function priceHistory() {


        let days = document.querySelector('input[name="time"]:checked').value;

        let i = document.getElementById("list").value

        let addrs = toks[i].address

        let sym = toks[i].symbol


        let dates = ["2021-09-30","2021-10-01","2021-10-02"];

        let blocks = [13321721,13331721,13341721];

        let prices = [4,6,3];


        let dates1 = Array(Number(days)).fill().map((e,i) =>

        moment().substract(i, "d").format("YYYY-MM-DD")


        let blocks1 = await Promise.all(dates1.map(async(e,i) =>

        await Moralis.Web3API.native.getDateToBlock({date:e})


        let prices1 = await Promise.all(blocks1.map(async(e,i) =>

        await Moralis.Web3API.token.getTokenPrice({address: addrs, to_block:e.block})



        prices1 = prices1.map(e => e.usdPrice)


        const data = {

            labels: dates1,

            datasets: [{

                label: sym,

                backgroundColor: 'rgb(255, 99, 132',

                borderColor: 'rgb(255, 99, 132',




        const config = {

            type: 'line',

            data: data,

            options: {}



        if(window.myChart instanceof Chart){




        window.myChart = new Chart(







Can someone help look into this html code?.
I am trying to build a price chart from uniswap but the chart wouldn’t come up. Maybe it is moment.js idk

@RasAlghur, can you make a different thread for this question, it doesn’t seem related to the original question from this thread