aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug] aptos-rest-client error parsing with wrong entry function id `RestClient.get_transactions`

Open Astrapolis-peasant opened this issue 3 years ago • 1 comments

🐛 Bug

To reproduce

Code snippet to reproduce

  use aptos_rest_client::{Client as RestClient, State, Transaction};

  let client = RestClient::new_with_timeout(node_url, Duration::from_secs(20));
  let res = client.get_transactions(Some(self.version), Some(TRANSACTION_FETCH_BATCH_SIZE)).await;

Stack trace/error message

 Could not fetch 1000 transactions starting at 7994873, will retry in 5000ms. Err: Unknown(error decoding response body: Invalid entry function ID 0x0:::: at line 1 column 49183

Expected Behavior

The deserialize on API types doesn't handle error entry function ids

System information

Please complete the following information:

Additional context

Add any other context about the problem here.

Astrapolis-peasant avatar Oct 24 '22 16:10 Astrapolis-peasant

https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos-rest-client/src/lib.rs

Astrapolis-peasant avatar Oct 24 '22 16:10 Astrapolis-peasant

This issue is stale because it has been open 45 days with no activity. Remove the stale label or comment - otherwise this will be closed in 15 days.

github-actions[bot] avatar Dec 23 '22 01:12 github-actions[bot]

I believe this was fixed, please re-open if issue persists.

davidiw avatar Dec 24 '22 06:12 davidiw