I'm getting a problem when I try to update a data using this node.js script, using cassandra-driver package :
pool.execute(`UPDATE cool.dmpt SET points = ${newpoint}, cooldown = true WHERE id = '${message.author.id}'`)
I am getting a huge error which says:
error.noHostAvaialableError
.
.
.
info: 'Represents an error when a query cannot be performed because no host is available or could be reached by the driver'
Other queries are executed well, but UPDATE query is giving the error :(
Missing
awaitbefore executing query.