We're using Microsoft Azure, and NodeJS on the server. When we address Microsoft Azure via NodeJS, sometimes we get the 'Password or Unlock' error. But when we use Truffle and address the same setter, everything works fine. What could be the possible problem and what does this error mean as I've unlocked my account.
This is my code:
this.web3.eth.getCoinbase()
.then(coinbase => {
console.log("Setter method started!");
return this.contract.methods
.setCopyright(
queryParams.certificateNumber,
queryParams.typeString,
queryParams.nameOfObject,
queryParams.firstName,
queryParams.secondName,
queryParams.lastName
)
.send({
from: coinbase,
gas: 4600000,
gasPrice: '22000'
});
})
.then(resolve)
.catch(err => {
reject(err);
});