I am using azure ethereum consortium network with Geth and MetaMask. and the following error is happening randomly:
0|server | (node:99208) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 53): Error: authentication needed: password or unlock
Sometimes the api call pass through successfully, and sometimes nodejs app logs show this. I unlocked the account multiple times using multiple ways giving me "true" boulean as follows:
personal.unlockAccount(eth.coinbase, "cDxxxxxxxxKaYZ", 300)
geth --exec "personal.unlockAccount(eth.accounts[0], 'cDb xxxxxxxKaYZ', 1000)" attach