I have two accounts on my geth node . The geth node is syncing with the Ropsten testnet . I executed the following commands
personal.unlockAccount(eth.accounts[1],'Test');
The result was true
After this I tried to sign data by using the following :-
web3.eth.sign("Hello world", eth.accounts[1]).then(console.log);
But can see an error message "invalid address"
What could be causing this error ? Any help appreciated.