on packet-recv: response error: Method not found (code: -32601)
Summary of Bug
trying to clear stuck packets on the secret/orai chain and keep on getting
ERROR link error: failed during query to chain id secret-4: RPC error to endpoint https://rpc-orai.cryptogenesis.xyz/: response error: Method not found (code: -32601)
which seems a bit funny as i'm not sure why it's querying the secret-4 on a orai endpoint. I've tried multiple endpoints on the chains.. and they all get that
Version
hermes 1.10.3+84743a21c
Steps to Reproduce
hermes tx packet-recv --src-chain secret-4 --dst-chain Oraichain --src-port transfer --src-channel channel-135
2024-09-30T13:25:32.296608Z INFO ThreadId(01) using default configuration from '/xxx/.hermes/config.toml'
2024-09-30T13:25:32.301920Z INFO ThreadId(01) running Hermes v1.10.3+84743a21c
2024-09-30T13:26:18.883907Z INFO ThreadId(01) relay_recv_packet_and_timeout_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}: 6 unreceived packets found: [ 1921, 1922, 1930, 1931, 1937, 1938 ]
2024-09-30T13:26:22.195835Z INFO ThreadId(01) relay_recv_packet_and_timeout_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}: pulled packet data for 6 out of 6 events: 1921..=1922, 1930..=1931, 1937..=1938 events.total=6 events.left=0
Acceptance Criteria
either a better error message explaining how to resolve it, or no error
For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate milestone (priority) applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
Can you please re-run the Hermes command that yields the error with the --debug=rpc flag? eg.
hermes --debug=rpc clear packets --chain Oraichain
log file is here https://gist.github.com/PFC-developer/928f64d36132cc8aca0b8279a7714a49
the last bit is the following:
2024-09-30T13:43:25.504881Z DEBUG ThreadId(25) relay_ack_packet_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}:generate_operational_data{tracking_id=packet-ack}: outgoing request url=https://rpc-orai.cryptogenesis.xyz/ body={
"jsonrpc": "2.0",
"id": "ce40b48a-4f99-4dcc-ad1b-64f67234ce45",
"method": "abci_info",
"params": null
}
2024-09-30T13:43:25.658909Z DEBUG ThreadId(25) relay_ack_packet_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}:generate_operational_data{tracking_id=packet-ack}: incoming response status=200 OK body={"jsonrpc":"2.0","id":"ce40b48a-4f99-4dcc-ad1b-64f67234ce45","result":{"response":{"data":"Oraichain","version":"v0.42.3","last_block_height":"34695292","last_block_app_hash":"5ZjLUNJuLxsNXahmAhvmF/xWgjFiHPupE4Zuu6ny+s8="}}}
2024-09-30T13:43:25.659006Z DEBUG ThreadId(25) relay_ack_packet_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}:generate_operational_data{tracking_id=packet-ack}: outgoing request url=https://rpc-orai.cryptogenesis.xyz/ body={
"jsonrpc": "2.0",
"id": "f3b5f151-d470-4c81-9d9c-b6f47f69619f",
"method": "header",
"params": {
"height": "34695292"
}
}
2024-09-30T13:43:25.813395Z DEBUG ThreadId(25) relay_ack_packet_messages{src_chain=secret-4 src_port=transfer src_channel=channel-135 dst_chain=Oraichain}:generate_operational_data{tracking_id=packet-ack}: incoming response status=200 OK body={"jsonrpc":"2.0","id":"f3b5f151-d470-4c81-9d9c-b6f47f69619f","error":{"code":-32601,"message":"Method not found"}}
2024-09-30T13:43:25.813628Z ERROR ThreadId(01) Failed to relay forward ack packets: failed during query to chain id secret-4: RPC error to endpoint https://rpc-orai.cryptogenesis.xyz/: response error: Method not found (code: -32601)
SUCCESS []
any thoughts? the packets are still stuck
Hey sorry for the delay. So about the endpoint in the error message, this is most likely caused by this typo, https://github.com/informalsystems/hermes/blob/v1.10.3/crates/relayer/src/link/relay_path.rs#L558-L560, which output the source endpoint in the error message.
About the failure, it would seem that the RPC request /header is failing.
Can you check that the compatibility for CometBFT is correct, https://github.com/informalsystems/hermes/blob/master/config.toml#L436.
looks like them upgrading to v50 resolved this. The packet is still stuck.. but that's due to me not having a orai archive node available. Thanks for the help Lucas!