toncenter / tonweb

JavaScript SDK for TON (The Open Network)
MIT License
510 stars 149 forks source link

Error: http provider parse response error #231

Open eden202306 opened 1 month ago

eden202306 commented 1 month ago
    async function get_usdt_balance() {
        const tonweb = new TonWeb();
        const jettonMinter = new TonWeb.token.jetton.JettonMinter(tonweb.provider, { address: new TonWeb.utils.Address("EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs") });
        const jettonWalletAddress = await jettonMinter.getJettonWalletAddress(new TonWeb.utils.Address(address));
        console.log(jettonWalletAddress)

        const jettonWallet = new TonWeb.token.jetton.JettonWallet(tonweb.provider, {
            address: jettonWalletAddress
        });

        try {
            const jettonBalance = (await jettonWallet.getData()).balance;
            console.log(jettonBalance);
        } catch (error) {
            console.error('error:', error);
        }

        console.log(jettonData)
    }

The error reported when executing the code is as follows: test.html:198 error: Error: http provider parse response error at o.parseResponse (tonweb.js:2:230330) at a.call2 (tonweb.js:2:228520) at async h.getData (tonweb.js:2:277780) at async get_usdt_balance (test.html:195:40)

Mahya0933 commented 1 month ago

``Check if you're eligible to receive rewards of up to 500,000 NOT and 3,000 USD₮ by clicking the "Earn" button.

Mahya0933 commented 1 month ago

Good

alexcraviotto commented 2 weeks ago

Did you fix that?

redbitbbe commented 1 week ago

I also encountered this problem

redbitbbe commented 1 week ago

image The exit_code reported here is -131