debug log errors in rpc request