steem-js icon indicating copy to clipboard operation
steem-js copied to clipboard

Retry on db lock error

Open roadscape opened this issue 6 years ago • 2 comments

This is a temporary and recoverable steemd error which should be retried automatically:

RPCError: Unable to acquire database lock

roadscape avatar May 09 '18 15:05 roadscape

I am facing the same issue in steem testnet for my local machine any solution? OR any cases/circumstances where this error occurs?

yashbhavsar007 avatar Feb 21 '20 12:02 yashbhavsar007

@yashbhavsar007 Just wrap your Api call in function and call it again on error.

function steem(){
    steem.api.SomeApiCall(..., function(err, result) {
        if(err){ 
            steem() 
        }
    }
}

fbslo avatar Jun 09 '20 13:06 fbslo