Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got Error ExtrinsicNotFound although extrinsic succeeded (for extrinsic with zero-padding at the end) #624

Closed
brenzi opened this issue Jul 20, 2023 · 17 comments
Assignees
Labels
Z6-question Further information is requested Z7-stale

Comments

@brenzi
Copy link
Contributor

brenzi commented Jul 20, 2023

If an extrinsic is very long, the submit_and_watch_extrinsic_until_success fails:

[2023-07-20T16:42:12Z INFO  substrate_api_client::rpc::ws_client] sending request: {"id":"1","jsonrpc":"2.0","method":"author_submitAndWatchExtrinsic","params":["0xf901840046e657be32ea70a16b5b2ddd560f4fb89107d212f8a588018f223da23dd6b5cd00680c9ba84f03361e08d2c38e5585b83a5a67b3af6ebc190763c7aa0208d46f9a80c91fa74819d19c79e0325174da5b57800deb26326f174becb7d9ebbf5cbd06000000320600507773733a2f2f3132372e302e302e313a323030302020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020"]}
[2023-07-20T16:42:12Z INFO  substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","result":"khfY5Puo7xECx9xW","id":"1"}
[2023-07-20T16:42:12Z WARN  substrate_api_client::rpc::ws_client] Expected subscription, but received an id response instead: Object {"id": String("1"), "jsonrpc": String("2.0"), "result": String("khfY5Puo7xECx9xW")}
[2023-07-20T16:42:12Z INFO  substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"khfY5Puo7xECx9xW","result":"ready"}}
[2023-07-20T16:42:24Z INFO  substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"khfY5Puo7xECx9xW","result":{"inBlock":"0x9a07873d067f5f3bf9f5df6819b4d3b0e5ddc9c8abb3ede93fd2b212ded4b20c"}}}
[2023-07-20T16:42:48Z INFO  substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"khfY5Puo7xECx9xW","result":{"finalized":"0x9a07873d067f5f3bf9f5df6819b4d3b0e5ddc9c8abb3ede93fd2b212ded4b20c"}}}
[2023-07-20T16:42:48Z INFO  ws] Queuing connection to ws://127.0.0.1:9944/
[2023-07-20T16:42:48Z INFO  substrate_api_client::rpc::ws_client] sending request: {"id":"1","jsonrpc":"2.0","method":"chain_getBlock","params":["0x9a07873d067f5f3bf9f5df6819b4d3b0e5ddc9c8abb3ede93fd2b212ded4b20c"]}
[2023-07-20T16:42:48Z INFO  substrate_api_client::rpc::ws_client] Got get_request_msg {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0x0bb93a126f5a8bb5f0e5417f646e9dc02bed9f5a608f17d39bef58489ee1873f","number":"0x6","stateRoot":"0x4fbab5085dabfe693f1bc5c43a1aa92e376bc78e3d7b56beb094ef02a450e9e0","extrinsicsRoot":"0x451d403a22293f645925978980eaabb3e7a304b8656282d5516371b702ddca39","digest":{"logs":["0x06617572612054c8640800000000","0x056175726101018ab3ed91da092e56a0c53e4408dc00a4f4be896daaf71a157b37eb411141d72e1ce24e9b2c12ee7e86bd79bf632ed26bcf98f61016dc8bf7960bb2fdcd463d86"]}},"extrinsics":["0x280403000b80612e748901","0xf901840046e657be32ea70a16b5b2ddd560f4fb89107d212f8a588018f223da23dd6b5cd00680c9ba84f03361e08d2c38e5585b83a5a67b3af6ebc190763c7aa0208d46f9a80c91fa74819d19c79e0325174da5b57800deb26326f174becb7d9ebbf5cbd06000000320600507773733a2f2f3132372e302e302e313a32303030"]},"justifications":null},"id":"1"}
[2023-07-20T16:42:48Z ERROR integritee_service] ExtrinsicFailed ExtrinsicNotFound

it seems the block header truncates extrinsics if they are too long. Therefore, the logic for searching extrinsics fails.

@brenzi
Copy link
Contributor Author

brenzi commented Jul 20, 2023

maybe also the cause for #621 ?

@haerdib

This comment was marked as outdated.

@haerdib

This comment was marked as outdated.

@haerdib
Copy link
Contributor

haerdib commented Jul 24, 2023

Found the problem of the wrong hash calculation. We encoded the extrinsic twice - a PR fixing this is incoming. What's left to investigate: Why does submit_and_watch_extrinsic_until_success fail even though the xt was successful?

@haerdib
Copy link
Contributor

haerdib commented Jul 24, 2023

@brenzi or @clangenb I am not able to reproduce this issue. I have tested it with our most recent version and the kitchensink_runtime, and it works so far (https://github.com/scs/substrate-api-client/blob/bh/test-long-xt/examples/examples/test_long_xt.rs)

When testing with a really long xt and the integritee-node polkadot-v0.9.42, I get the error [2023-07-24T15:48:55Z INFO substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","error":{"code":1010,"message":"Invalid Transaction","data":"Transaction would exhaust the block limits"},"id":"1"}

Could you provide some information on how I can reproduce this issue?

@brenzi
Copy link
Contributor Author

brenzi commented Jul 27, 2023

what I can say is we used the polkadot-v0.9.42-tag-v0.10.0 branch
Other than that, the setup to reproduce is quite involved. I'll try to isolate

@clangenb
Copy link
Collaborator

Can this be the reason for the failure?

f(&BlakeTwo256::hash(payload)[..])

@haerdib
Copy link
Contributor

haerdib commented Jul 28, 2023

That would be surprising. Substrate handles it the same way:

https://github.com/paritytech/substrate/blob/1612e39131e3fe57ba4c78447fb1cbf7c4f8830e/primitives/runtime/src/generic/unchecked_extrinsic.rs#L229-L241

And I just tested if the difference between the two functions matters, but the output is the same. (with the following test:)

#[cfg(test)]
mod tests {
	use super::*;
	use sp_core::hashing::blake2_256;

	#[test]
	fn encode_decode_roundtrip_works() {
		let bytes = "afaefafe1204udanfai9lfadmlk9aömlsa".as_bytes();
		assert_eq!(&blake2_256(bytes)[..], &BlakeTwo256::hash(bytes)[..]);
	}
}

But definitely not something to ignore, I suppose - there might be a small difference somewhere (e.g. Susbtrate using a different struct, the api-client not using it the same as Substrate..)

@clangenb
Copy link
Collaborator

No, my question was rather that in one case we return the payload directly and in the other case only hash of it:

@haerdib
Copy link
Contributor

haerdib commented Jul 28, 2023

Somehow, it seems a little strange to me: Polkadot.js can not decode the long version of the extrinsic in the logs you sent @brenzi , but the short version, reported in the block (0xf901840046e657be32ea70a16b5b2ddd560f4fb89107d212f8a588018f223da23dd6b5cd00680c9ba84f03361e08d2c38e5585b83a5a67b3af6ebc190763c7aa0208d46f9a80c91fa74819d19c79e0325174da5b57800deb26326f174becb7d9ebbf5cbd06000000320600507773733a2f2f3132372e302e302e313a32303030) decodes.

grafik

tested on integritee rococo (https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo.api.integritee.network#/extrinsics/decode)
Do you happen to know why?

@haerdib
Copy link
Contributor

haerdib commented Jul 28, 2023

I have added some unit tests that check the extrinsic encoding and hashing thereof (by comparing them to the substrate implementation). That does seem to work, so I don't think that's the problem (see #636 )

The main question for me now is: Why is the extrinsic sent longer than the one reported in the block? I don't think Substrate truncates extrinsic, as this would result in information loss.

@haerdib
Copy link
Contributor

haerdib commented Jul 28, 2023

Another thought: Could the subscription be from the wrong extrinsic?

According to #620 (comment) the reported block hash is wrong. That would certainly mess up everything. Would need some investigation in our older rpc-clients (ws-client and tungstenite-client)

@haerdib haerdib added the Z6-question Further information is requested label Sep 14, 2023
@clangenb
Copy link
Collaborator

@haerdib
Copy link
Contributor

haerdib commented Nov 3, 2023

@clangenb @brenzi since the issue still seems to be there in release v14, and I was not able to reproduce it yet (see comment) could you provide me the following information:

  • which rpc client are you using?
  • the extrinsic which does not work (or steps to reproduce the failing extrinsic)

@haerdib
Copy link
Contributor

haerdib commented Nov 24, 2023

I did some thorough investigation and did not find anything. But I can rule out the following:

  • Substrate does not truncate long extrinsic, at least not by default. This can be ruled out with the test example in add test-long-xt file #637 (test_long_xt). Tested by running the latest Substrate docker node with kitchensink runtime. The extrinsic was found, even though it was longer than 256 bytes. See the debug output:
[2023-11-24T15:19:52Z DEBUG test_long_xt] Composing generic extrinsic for module "Sudo" and call "sudo"
[2023-11-24T15:19:52Z DEBUG substrate_api_client::rpc::tungstenite_client::client] Connected to the server. Response HTTP code: 101 Switching Protocols
[2023-11-24T15:19:52Z DEBUG substrate_api_client::rpc::tungstenite_client::client] skip ping msg
[2023-11-24T15:19:52Z DEBUG substrate_api_client::rpc::tungstenite_client::client] got on_subscription_msg {"jsonrpc":"2.0","result":"ngPfgHSJYaok6AOd","id":"1"}
[2023-11-24T15:19:52Z WARN  substrate_api_client::rpc::tungstenite_client::client] Expected subscription, but received an id response instead: Object {"id": String("1"), "jsonrpc": String("2.0"), "result": String("ngPfgHSJYaok6AOd")}
[2023-11-24T15:19:52Z DEBUG substrate_api_client::rpc::tungstenite_client::client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"ngPfgHSJYaok6AOd","result":"ready"}}
[2023-11-24T15:19:54Z DEBUG substrate_api_client::rpc::tungstenite_client::client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"ngPfgHSJYaok6AOd","result":{"inBlock":"0x073110ae1df4d7d1829cbaa9a39c3c5b35621b84251dc2652d0161f1041e4c2c"}}}
[2023-11-24T15:19:54Z DEBUG substrate_api_client::rpc::tungstenite_client::client] Connected to the server. Response HTTP code: 101 Switching Protocols
[2023-11-24T15:19:54Z DEBUG substrate_api_client::rpc::tungstenite_client::client] skip ping msg
[2023-11-24T15:19:54Z ERROR substrate_api_client::api::rpc_api::events] Got Block Block { header: Header { parent_hash: 0xb07853b52b7cb8525176aa878854eba78695203114cba0007c8bded6e131ae54, number: 104, state_root: 0x2bc7a7123cd12fd5702c1a10d0bb1f3a92d0ea18e447109e9622817017593795, extrinsics_root: 0xac76a34ddc520eeedebc447c942c781e91bf4ef413dc496feab1ad77442aa429, digest: Digest { logs: [DigestItem::PreRuntime([66, 65, 66, 69], [2, 0, 0, 0, 0, 94, 234, 202, 33, 0, 0, 0, 0]), DigestItem::Seal([66, 65, 66, 69], [206, 51, 34, 36, 80, 89, 152, 101, 225, 17, 46, 27, 31, 121, 113, 92, 252, 46, 243, 56, 67, 236, 50, 134, 55, 48, 25, 14, 222, 53, 56, 50, 226, 144, 154, 179, 234, 144, 196, 231, 162, 48, 84, 71, 209, 86, 86, 221, 233, 121, 179, 201, 60, 24, 142, 101, 139, 80, 8, 68, 26, 27, 148, 140])] } }, extrinsics: [0403000b907dea018c01, 8400d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d010a4768480ee23d5b451b3f58e3c1c11a7fe674e9fe5fef28aaf5d840ed997f4c6f317df50f8fa7649e48cad48cb276358f2b3936789a897654d26b1a5b523f880008000016000002828d82000061736d010000000193044160017f0060017f017f60027f7f0060037f7f7f0060047f7f7f7f0060037f7f7f017f60027f7f017f60000060057f7f7f7f7f006000017f60027f7f017e60027f7e017f60067f7f7f7f7f7f0060047f7f7e7e0060047f7f7f7f017f60057f7f7f7f7f017f60077f7f7f7f7f7f7f017f60017f017e60017e017f60077f7f7f7f7f7f7f0060057f7f7f7e7f0060017e0060017e017e60047f7f7e7f0060027e7e0060067f7f7f7f7f7f017f60047f7e7e7f0060027f7e0060057f7e7e7e7e0060037f7e7f017f60047f7c7f7f017f60037e7f7f0060037f7e7f006000017e60077f7e7e7e7e7e7e0060027e7f017f60027e7e017e60037e7e7f017e60037f7e7e0060097f7f7f7f7f7f7e7e7e0060047e7e7f7f017f600f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f017f60137f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f017f60037e7f7f017f60067f7f7f7e7f7f0060077f7f7e7e7e7e7f0060087f7f7e7e7e7e7f7f00600a7f7f7f7e7e7e7e7e7e7e017f60047f7e7f7f017f60087f7f7f7f7f7f7f7f0060...75696c74696e73336d656d376d656d6d6f76653137686134643466393662326561326533653645f315355f5a4e3137636f6d70696c65725f6275696c74696e73336d656d366d656d7365743137683131633361323562386138303364316645f415355f5a4e3137636f6d70696c65725f6275696c74696e73336d656d366d656d636d703137683565366363313330306239363837646645f515066d656d736574f615095f5f6c736872746933071201000f5f5f737461636b5f706f696e74657209170300072e726f6461746101052e6461746102042e6273730091010c72756e74696d655f61706973df6acb689907609b0400000037e397fc7c91f5e40200000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000dd718d5cc53262d401000000ab3c0572291feb8b01000000ed99c5acb25eedf503000000bc9d89904f5b923f0100000037c8bb1350a9a2a804000000f3ff14d5ab5270590300000000420f72756e74696d655f76657273696f6e3c696e74656772697465652d736f6c6f3c696e74656772697465652d736f6c6f010000002200000001000000000600000000004d0970726f64756365727302086c616e6775616765010452757374000c70726f6365737365642d6279010572757374631d312e36362e31202839303734336537323920323032332d30312d313029] }
[2023-11-24T15:19:54Z DEBUG substrate_api_client::rpc::tungstenite_client::client] Connected to the server. Response HTTP code: 101 Switching Protocols
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'System::ExtrinsicSuccess'
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'Balances::Withdraw'
[2023-11-24T15:19:54Z DEBUG substrate_api_client::api::rpc_api::events] associated event_details "Balances" "Withdraw"
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'Sudo::Sudid'
[2023-11-24T15:19:54Z DEBUG substrate_api_client::api::rpc_api::events] associated event_details "Sudo" "Sudid"
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'Balances::Deposit'
[2023-11-24T15:19:54Z DEBUG substrate_api_client::api::rpc_api::events] associated event_details "Balances" "Deposit"
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'TransactionPayment::TransactionFeePaid'
[2023-11-24T15:19:54Z DEBUG substrate_api_client::api::rpc_api::events] associated event_details "TransactionPayment" "TransactionFeePaid"
[2023-11-24T15:19:54Z DEBUG ac_node_api::events::event_details] Decoding Event 'System::ExtrinsicSuccess'
[2023-11-24T15:19:54Z DEBUG substrate_api_client::api::rpc_api::events] associated event_details "System" "ExtrinsicSuccess"
[+] Extrinsic got successfully executed 0x8713432c6fcd0e8318501c2a618ebf8d15f0e7417894641ebea05d7203f58777
[+] Extrinsic got included. Block Hash: Some(0x073110ae1df4d7d1829cbaa9a39c3c5b35621b84251dc2652d0161f1041e4c2c)
  • Hashing payloads longer than 256 bytes (suggested here) is also not a problem. This should only affect signatures, not the decoding of the extrinsic. It can also be ruled out by the test with the long xt.
  • The subscription coming from the wrong extrinsic (suggested here) is also not the case. This can be verified in the logs here.

In the api client itself, there is no truncating happening of the extrinsic and the decoding thereof. It can handle xt longer than 256 bytes without any problems. My only leads left:

  • Though Substrate does not truncate by default, it may truncate extrinsic in special cases or due to some settings. Maybe your xt was affected due to that?
  • Based on this hint: There may be something wrong with the extrinsic itself, but your node or pallet handles it fairly well.

@haerdib
Copy link
Contributor

haerdib commented Nov 24, 2023

Removing the bug label for now because I'm almost certain this is not an api-client issue. Still leaving the ticket open though because the api-client should be helpful in debugging this issue, but further information from your side is needed.

@clangenb
Copy link
Collaborator

The error has finally been fixed. It came from the Integritee side, and Litentry has fixed it in integritee-network/worker#1505. 🥳

Thanks a lot for your investigation!

@brenzi brenzi changed the title got Error ExtrinsicNotFound although extrinsic succeeded (for long extrinsic) got Error ExtrinsicNotFound although extrinsic succeeded (for extrinsic with zero-padding at the end) Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z6-question Further information is requested Z7-stale
Projects
None yet
Development

No branches or pull requests

3 participants