aptos-labs / aptos-ts-sdk

An SDK for accessing the Aptos blockchain data, submitting transactions, and more!
https://aptos-labs.github.io/aptos-ts-sdk/
Apache License 2.0
67 stars 37 forks source link

[Bug] I encountered an error when trying to fetch the list of collections by getAccountCollectionsWithOwnedTokens #434

Closed ducnguyen993 closed 2 months ago

ducnguyen993 commented 2 months ago

🐛 Bug Description

How to reproduce

Code snippet to reproduce

const alice = Account.fromPrivateKey({
    privateKey: new Ed25519PrivateKey("507b4df2baa236ec488ccba435b7594add722ff5c2f5836291b5bd899cf902af"),
  });
  console.log("=== Addresses ===\n");
  console.log(`Alice's address is: ${alice.accountAddress}`);
  const alicesCollection = await aptos.getAccountCollectionsWithOwnedTokens({
    accountAddress: alice.accountAddress,
  });

Stack trace / error message

AptosApiError: Indexer error: field 'amount' not found in type: 'current_collection_ownership_v2_view_bool_exp'

Expected Behavior

System information

System details:

Additional context

Add any other context about the problem here.

ducnguyen993 commented 2 months ago

Hey @gregnazario , another error when I try to use this function

[AptosApiError: Indexer error: Unhandled Error 408 : undefined]

gregnazario commented 2 months ago

Hey @gregnazario , another error when I try to use this function

[AptosApiError: Indexer error: Unhandled Error 408 : undefined]

Which network is this using? Devnet?