I was making a web app on Difinity’s Internet Computer using Motoko language but when I try to call a query function from my frontend I got the Uncaught runtime error saying – ‘Timestamp not found in query response. This suggests a malformed or malicious response.’
My query functions are not working
I made this query function –
stable var currentValue: Float= 100;
public query func checkBalance (): async Float {
return currentValue;
};
I call it from my index.js file like this –
import { dbank} from "../../declarations/dbank";
window.addEventListener('load', async () => {
let currentValue = await dbank.checkBalance();
document.getElementById("value").innerText = currentValue;
});
**And I got this error **-
Timestamp Error
New contributor
Siddharth Saxena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.