You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simulation succeeds, and the GRPC call of execute_tx also succeeeds, giving us the tx_hash. Note however that the deprecation of broadcast mode BLOCK and migration to SYNC has removed the tx_response.code from the abci_pb2.TxResponse type.
As a result, we manually query the tx using its hash. This is raising an
inactive RPC error in the GRPC call.
E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.NOT_FOUND
E details = "tx not found: 7D1A949BC0DA3B7FA69BA7FF82D2F29170316448C2013D2001B8276BBA5F807F"
E debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:9090 {grpc_message:"tx not found: 7D1A949BC0DA3B7FA69BA7FF82D2F29170316448C2013D2001B8276BBA5F807F", grpc_status:5, created_time:"2023-07-06T19:35:56.154371464-05:00"}"
E >
.venv/lib/python3.8/site-packages/grpc/_channel.py:910: _InactiveRpcError
The text was updated successfully, but these errors were encountered:
## Migration complete! (needs cleanup refactor)
- epic(tmrpc,tx): All passing tests for v0.21!
- feat(jsonrpc): impement JSON-RPC 2.0 as a subpackage of nibiru
- chore(deps): add type stubs for the requests and urllib pkgs
- Closes#228
## `jsonrpc`
The `nibiru.jsonrpc` package implements the official [JSON-RPC 2.0
spec](https://www.jsonrpc.org/specification) in Python with strict
strong typing. All of the examples written in the spec are used as test
cases. A few real payloads from the chain are also mixed into the test
suites.
## `tmrpc`
The `nibiru.tmrpc` package implements classes for building valid queries
corresponding to the Tendermint v0.37 RPC API. These types are
JSON-RPC-compatible and inherit directly from the types in
`nibiru.jsonrpc`.
- feat(tm_rpc): implement jsonrpc version of broadcast tx with tests
---
![wk28-n1719-TabTip_DIV3](https://github.com/NibiruChain/py-sdk/assets/51418232/b976645e-00d3-4407-8a0d-109496d18c38)
---
## Related
- #241
Background
InactiveRpcError is the only hurdle to all passing tests for v0.21
Context
Line that causes the error in our code base:
The simulation succeeds, and the GRPC call of
execute_tx
also succeeeds, giving us thetx_hash
. Note however that the deprecation of broadcast modeBLOCK
and migration toSYNC
has removed thetx_response.code
from theabci_pb2.TxResponse
type.As a result, we manually query the tx using its hash. This is raising an
inactive RPC error in the GRPC call.
Stack trace (example):
uv/v0.21
Code where the error is raised:
The text was updated successfully, but these errors were encountered: