It seems that the watchEthAddress cloud function is not working any more

Hey guys.

Today noticed that the invoking of the watchEthAddress cloud function gives me that error in a browser’s console:
The watchEthAddress was rejected due to the reason: Error: Invalid function: "watchEthAddress" at handleError (moralis.js:21728)

And that error in a server’s log:
Error: Invalid function: "watchEthAddress" at handleCloudFunction (/moralis-server/lib/Routers/FunctionsRouter.js:119:13) at /moralis-server/lib/PromiseRouter.js:85:20 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5)

I use that version of Moralis:
<script src="https://unpkg.com/moralis/dist/moralis.js"></script>

My server has the latest 0.0.235 version and is connected to the Mumbai chain.

Was the watchEthAddress renamed?

Hi @smarta-robotar ,

No, the WatchedEthAddress has not been renamed. Perhaps you were using the wrong name watchEthAddress and not WatchedEthAddress . WatchedEthAddress is not a could function, it is a collection that you can query directly from your code.

Please check out the docs regarding this - https://docs.moralis.io/moralis-server/real-time-transactions#sync-and-watch-address

Regards. :slight_smile:

1 Like