Hello. I am using simple code from doc:
public async getUserRooms(userAddress: string): Promise<string[] | any> {
try {
return await Moralis.executeFunction({
...this.defaultContractOptions,
functionName: "getUserRooms",
params: {
userAddress: userAddress,
},
}
);
} catch (e: any) {
console.log("getUserRooms", e)
}
}
For get data from contract. and receive error:
After page is reloaded, all works well. In some time have error again. Any ideas?