[SOLVED] EthTransactions of Rinkeby, not synced at all since yesterday

Server didn’t fetch transactions at all AGAIN. Also, when I try to use ‘watchEthAddress’, there is ‘ParseError’ like belows,

watchEthAddress Error… ParseError: [object Object]
at handleError (…/node_modules/moralis-v1/lib/node/RESTController.js:423:17)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

These funtions worked well before and tried to reboot twice to fix but same

url: https://cxoxjmodravn.usemoralis.com:2053/server
appId: lo4153a3pLwIbjHVKHMzvPS66xhJ43ZM1qVIV8Gd

From time to time, your server state makes me nervous, can we proceed commercial service with this?

it looks like one issue now is that an event sync with type function was added to that server:

{
    "chainId": "0x4",
    "address": "....",
    "tableName": "...",
    "topic": "Approve(address,uint256)",
    "abi": {
        "inputs": [
            {
                "internalType": "address",
                "name": "spender",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            }
        ],
        "name": "approve",
        "outputs": [
            {
                "internalType": "bool",
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    "filter": "",
    "sync_historical": true,
    "description": "..."
}

you have to delete that event sync that is invalid, in that case coreservices will get stuck at that invalid event sync

My colleague added it using legacy UI and he can’t remove that invalid event sync becuase currently can’t use legacy UI.

By the way, a strange thing is that added date was 20 days ago and sync just worked until just few days ago.

Anyway, should we use ‘Moralis.Cloud.run(‘coreservices_removeEventSync’, …’ or something? Let me know the correct syntex to remove that invalid event sync programatically without legacy UI

Thanks

You can still access the legacy interface to remove it. You will find a temporary link in other similar recent threads. After you remove it you also have to restart corrservices.

I’ve remove that invalid event sync which you’ve told. Restart instance twice but trying ‘watchEthAddress’ for adding an address, same error occurs. Below is error log from server dashboard

Failed running cloud function watchEthAddress for user undefined with:
Input: {“address”:“0xe149d4f145fe33baed558688b33e0c596a3168da”}
Error: {“message”:{“status”:502,“headers”:{“x-powered-by”:“Express”,“access-control-allow-origin”:"*",“content-type”:“application/json; charset=utf-8”,“content-length”:“24”,“etag”:“W/“18-py7kky+nYw+KpM//zLTacYk1OLw””,“x-response-time”:“3.784ms”,“date”:“Mon, 29 Aug 2022 17:15:43 GMT”,“connection”:“close”},“buffer”:{“type”:“Buffer”,“data”:[123,34,101,114,114,111,114,34,58,116,114,117,101,44,34,100,97,116,97,34,58,123,125,125]},“text”:"{“error”:true,“data”:{}}",“data”:{“error”:true,“data”:{}}},“code”:141}

Used code for testing

await Moralis.start({ serverUrl, appId, masterKey });

    try {
      await Moralis.Cloud.run(
        "watchEthAddress",
        { address: "0xe149d4f145fe33baed558688b33e0c596a3168da" },
        { useMasterKey: true }
      ).then((result) => {
        console.log(result);
      });
    } catch (err) {
      console.log('watchEthAddress error...', err)
    }

Transaction fetching has same fault either

I wanted to say that you also have to restart coreservices.
I’m not at computer now.

You can check this post:

To restart core service makes it working!

Thanks

1 Like