Passphrase: WARN [12-18|08:40:40.657] Served personal_unlockAccount reqid=15 t=”72.701µs” err=”account unlock with HTTP access is forbidden” GoError: Error: account unlock with HTTP access is forbidden at web3.js:6347:37(47) at native at :1:24(6)

  sre

5fda2c971a91e1467.jpg_fo742.jpg

解锁命令:

personal.unlockAccount(eth.accounts[0])

报错:

Passphrase: 
WARN [12-18|08:40:40.657] Served personal_unlockAccount            reqid=15 t="72.701µs" err="account unlock with HTTP access is forbidden"
GoError: Error: account unlock with HTTP access is forbidden at web3.js:6347:37(47)
        at native
        at <eval>:1:24(6)

异常原因
新版本geth,出于安全考虑,默认禁止了HTTP通道解锁账户

解决方案
如果已经了解打开此功能的风险,可通启动命令中添加参数:

--allow-insecure-unlock

LEAVE A COMMENT

Captcha Code