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)

I’m getting an error when I try to unlock too:

Unlock Failed

Your Unlock request could not be processed

transaction failed (transactionHash="0x30c24d9be0c4686880745de2945de2a79a56607c4…

Anyone know how to resolve this? Thanks!

Anyone receive an email from Hannah on how to fix this issue? I’d prefer seeing the solution in this forum verses email.

Hi all, thanks for posting here and sorry for the delayed response.

Valora doesn’t have an unlocking mechanism, so I suspect you must be using another wallet or app for this. Please reach out to their support team to report this and get support.

One very common thing to check when transactions fail for any reason: make sure you have enough CELO for the transaction fees.