Invaild Value for the "value" argument

Hi I have a problem with a blog project I am required to make for my school.

In my project I have an admin page containing html/css and js that used to have a login-template and now because since I added this code into the js an error pops up.

function gotError (error) {
Materialize.toast(‘Incorrect Username or Password!’, 4000); <-this is the line of code that I added.
console.log("Error message - " + error.message);
console.log("Error code - " + error.code);
}

This is the error that pops up:

backendless.js:1003
Uncaught Error: Invalid value for the “value” argument. The argument must contain only string or object values

Feel free to ask me questions about my project!

Hi Peter,

We need to know what Backendless API you’re using that causes that error. If you know what “stack trace” is, please post it here.

Mark

API means the Backendless Application Id right?
I do not know what a stack trace is.
Thanks for replying!

No, “API” means what method from the Backendless library you invoke.

This will help you understand how to debug client code and get a stack trace: