steem-js
steem-js copied to clipboard
Retry on db lock error
This is a temporary and recoverable steemd error which should be retried automatically:
RPCError: Unable to acquire database lock
I am facing the same issue in steem testnet for my local machine any solution? OR any cases/circumstances where this error occurs?
@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()
}
}
}