UPDATE statement returning error when using the Cassandra Node.js driver

97 views Asked by At

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 :(

1

There are 1 answers

0
Aditya Narayan On

Missing await before executing query.