eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
eth_1 | [2023-06-17T06:59:41Z ERROR web3_proxy::stats::stat_buffer] unable to save accounting entry! err=BadRequest("Could not find rpc key in db")
The revelant code:
let sender_balance: balance::Model = balance::Entity::find()
.filter(balance::Column::UserId.eq(sender_rpc_entity.user_id))
.one(txn)
.await?
.ok_or(Web3ProxyError::BadRequest(
"Could not find rpc key in db".into(),
))?;
Instead of erring with a bad request, I think we should create an empty balance row.
I'm seeing a lot of this in ski's logs:
The revelant code:
Instead of erring with a bad request, I think we should create an empty balance row.