I am trying to make rpc calls to an Rpc Interface "listunspent". So i get this Error: ESOCKETTIMEDOUT. I checked the bitcoin node debug file and saw the error message "Depth queue work exceeded". I have added this option rpcworkqueue= settings to the bitcoin.conf file.

Here is my bitcoin.conf file

prune=550 port=8333 rpcworkqueue=1000 rpcuser=user rpcpassword=userpass zmqpubrawblock=tcp:// zmqpubrawtx=tcp:// zmqpubhashtx=tcp:// zmqpubhashblock=tcp://

The following is the error response i get while trying to make rpc calls from my node app

"status": 500,
"error": {
    "name": "RequestError",
    "message": "Error: ESOCKETTIMEDOUT",
    "cause": {
        "code": "ESOCKETTIMEDOUT",
        "connect": false
    "error": {
        "code": "ESOCKETTIMEDOUT",
        "connect": false
    "options": {
        "auth": {
            "user": "user",
            "pass": "userpass"
        "uri": "/",
        "baseUrl": "",
        "timeout": 30,
        "json": true,
        "body": {
            "method": "listunspent",
            "params": {},
            "jsonrpc": 1,
            "id": "rpc-bitcoin"
        "method": "POST",
        "simple": true,
        "resolveWithFullResponse": false,
        "transform2xxOnly": false


Any help to solve this?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.