Account unlock failing: "unlock with HTTP access is forbidden"

Trying to transfer a small amount of celo gold via command line. However I am getting around this error when attempting to unlock the wallet prior to initiating a transfer. Any help getting around this error is appreciated.

Note that the same error is generated when the password is deliberately mistyped.

Thanks!


root@celo-node-docker-s-2vcpu-4gb-sgp1-01:~/celo-data-dir# npx celocli account:unlock 1234567890
Password: **********
Error: Returned error: account unlock with HTTP access is forbidden
at Object.ErrorResponse (~/celo-data-dir/node_modules/web3-core-helpers/src/errors.js:29:16)
at ~/celo-data-dir/node_modules/web3-core-requestmanager/src/index.js:140:36
at XMLHttpRequest.request.onreadystatechange (~/celo-data-dir/node_modules/web3-providers-http/src/index.js:102:13)
at XMLHttpRequestEventTarget.dispatchEvent (~/celo-data-dir/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (~/celo-data-dir/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (~/celo-data-dir/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage. (~/celo-data-dir/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)

Device Information

Ubuntu Command Line

I had the same issue and resolved using --allow-insecure-unlock flag when I started the node (in the docker command)