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

wallet API returns asset list plus error #2006

Open
Maxnflaxl opened this issue Jan 19, 2025 · 0 comments
Open

wallet API returns asset list plus error #2006

Maxnflaxl opened this issue Jan 19, 2025 · 0 comments
Labels
api Issues related to Wallet API assets confidential assets

Comments

@Maxnflaxl
Copy link
Member

Bug title
Express the problem in a single concise sentence

Bug description
A clear and concise description of what the bug is.

To Reproduce

function getAssetList() {
    return new Promise((resolve, reject) => {
        var params = {
            "refresh": true,
            "height": 3170671
        };

        // Call the API
        wallet_api.callApi('assets_list', params, (error, result, full) => {
            if (error) {
                console.log("Error invoking contract:", error);  // Look here for example. The asset info is there, but an error is returned.

                reject(error);  // Call reject with the error
                return;
            }

            console.log(result);

            // Resolve the Promise with the result
            resolve(result);
        });
    });
}

Current behaviour
API returns an error, but also the wanted data about assets.

Error: {error: "no valid api call result", answer: {assets: Array(168), id: " call-2", jsonrpc: "2.0"}

Expected behaviour
returns asset list only

Platform and build

  • Desktop wallet 7.5

reported by @iDoHaveAtgHandleNow on TG

@Maxnflaxl Maxnflaxl added api Issues related to Wallet API assets confidential assets labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to Wallet API assets confidential assets
Projects
None yet
Development

No branches or pull requests

1 participant