Git Product home page Git Product logo

Comments (6)

linuskendall avatar linuskendall commented on September 12, 2024

OK, I think I see what's going on here:

let asset = scopes::asset::get_by_id(db, id, false).await?;

since include_no_supply: bool, is set to false then the asset gets filtered by the das api frontend:

    if !include_no_supply {
        asset_data = asset_data.filter(Condition::all().add(asset::Column::Supply.gt(0)));
    }
    ```

from digital-asset-rpc-infrastructure.

linuskendall avatar linuskendall commented on September 12, 2024

For some reason these assets have supply set to 0 after ingestion into the DB.

from digital-asset-rpc-infrastructure.

brianlong avatar brianlong commented on September 12, 2024

Look for flawed error handling where errors are silently swallowed, and a default value is set to zero.

from digital-asset-rpc-infrastructure.

staccDOTsol avatar staccDOTsol commented on September 12, 2024

It seems like there might be an issue with the API not being able to find the assets in the database. One possible reason could be that the assets were not properly indexed in the API's database.

To troubleshoot this issue, you can try the following steps:

  1. Check if the assets are present in the API's database by querying the database directly. You can use a database client like pgAdmin to connect to the database and run a query to check if the assets are present.

  2. If the assets are present in the database, then there might be an issue with the API's indexing. You can try re-indexing the assets by running a script that updates the API's database with the latest data from the blockchain.

  3. If the assets are not present in the database, then there might be an issue with the data pipeline that feeds data into the API's database. You can check the logs of the data pipeline to see if there are any errors or issues that might be causing the assets to not be properly indexed.

I hope this helps! Let me know if you have any further questions.

from digital-asset-rpc-infrastructure.

austbot avatar austbot commented on September 12, 2024

Yeah we added this filter to eliminate burned nfts.
This could be where the metadata shows up and they mint in a instruction or transaction later and somehow that's missed by the token account query to update the supply of the nft

from digital-asset-rpc-infrastructure.

linuskendall avatar linuskendall commented on September 12, 2024

This looks like it was fixed already by patch submitted.

from digital-asset-rpc-infrastructure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.