toncenter / ton-wallet

Web Wallet and Browser Extension for TON (The Open Network)
https://wallet.ton.org
GNU General Public License v3.0
211 stars 70 forks source link

LITE_SERVER_UNKNOWN: cannot apply external message to current state ;500 ERROR #207

Open TycheGames opened 6 months ago

TycheGames commented 6 months ago

Bug Type

Functional

Reproduction steps

deploy wallet

Actual result

 ok: false,
  error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : failed to parse external message external message is not a (Message Any) according to automated checks',
  code: 500
}

Expected result

no error

Suggested Severity

High

Device

Desktop (please complete the following information):

Additional Context

No response

SaD1sT1337 commented 6 months ago

same issue...

leoenes commented 6 months ago

same issue also

m1faridi commented 5 months ago

same issue. Unhandled promise rejection: LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state

Chidiebere95 commented 5 months ago

Same issue LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted

gyloong commented 4 months ago

same issue also...

Kinyabundi commented 4 months ago

same issue also

slyofzero commented 4 months ago

I got the same issue while trying to send a transaction using the testnet RPC https://testnet.toncenter.com/api/v2/jsonRPC and @ton/ton package for JS

Mae6e commented 4 months ago

hi, when i execute: npx blueprint run: data: { ok: false, error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted\n' + 'Cannot run message on account: inbound external message rejected by transaction 16651A45C1A677E97C369638C01BD1FBD96F9B7E853018E046E01651B3B4551D:\n' + 'exitcode=0, steps=0, gas_used=0', code: 500 }

beyondyourself113 commented 3 months ago

Hello, everyone I can't send any message and I got this error data: { ok: false, error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state', code: 500 }

this-mojtaba commented 2 months ago

i've same error:

[Deployer] deployNft error LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted Cannot run message on account: inbound external message rejected by transaction 'transaction id': exitcode=33, steps=23, gas_used=0

Menmaz commented 2 months ago

Team no working ?

joaomatbarbosa commented 2 months ago

I have the same issue, using @ton/ton. Could it be because of the library ? Or node fault ?

GooseBumpsOS commented 1 month ago

Проверьте версию кошелька(и ту ли бибилиотеку вы вызываете) и наличие баланса

Omokami commented 1 month ago

same issue also

@GooseBumpsOS

please help me

Omokami commented 1 month ago

please tell me more detail

GooseBumpsOS commented 4 weeks ago

please tell me more detail

as far as I remember, I had a problem that I was calling the library version 4 (you can check it by prefix class 4 TonClient4), and as a consequence it couldn't read the data correctly

check your wallet version via tonview as on the screenshot.

image

if everything is correct, make sure that the balance is enough to fulfill the contract deployment.


If text above did not help you, please provide your deployment code here

Omokami commented 4 weeks ago

@GooseBumpsOS

Thank you for you reply.

image

        const tonweb = new TonWeb(new TonWeb.HttpProvider(
            'https://toncenter.com/api/v2/jsonRPC', {
            apiKey: 'f682a7fc556fed6b126.....'
        })
        );
        const destinationAddress = new TonWeb.Address('EQCq4b5hpMyEx8lt7JQeg0K_s9PEo7EEeuH7Tr1mnDrROPef');

        const forwardPayload = new TonWeb.boc.Cell();
        forwardPayload.bits.writeUint(0, 32); 
        forwardPayload.bits.writeString('Hello, Jetton');

        const jettonTransferBody = new TonWeb.boc.Cell();
        jettonTransferBody.bits.writeUint(0xf8a7ea5, 32); 
        jettonTransferBody.bits.writeUint(0, 64); 
        jettonTransferBody.bits.writeCoins(new TonWeb.utils.BN('1')); 
        jettonTransferBody.bits.writeAddress(destinationAddress);
        jettonTransferBody.bits.writeAddress(destinationAddress); 
        jettonTransferBody.bits.writeBit(false); 
        jettonTransferBody.bits.writeCoins(TonWeb.utils.toNano('0.02'));
        jettonTransferBody.bits.writeBit(true); 
        jettonTransferBody.refs.push(forwardPayload);

        const mnemonic = seedPhrase.join(' ');

        const keyPair = await mnemonicToKeyPair(mnemonic!.split(' '));

        const jettonWallet = new TonWeb.token.ft.JettonWallet(tonweb.provider, {
            address: 'EQD5aKYul1ucC9KSmoYAdJ9lTGBvdN64ixASc039BNND45_K'
        });

        const wallet = new tonweb.wallet.all['v4R2'](tonweb.provider, {
            publicKey: keyPair.publicKey,
            wc: 0 
        });

        const seqno = await wallet.methods.seqno().call()

        await wallet.deploy(keyPair.secretKey).send();

        await wallet.methods.transfer({
            secretKey: keyPair.secretKey,
            toAddress: jettonWallet.address,
            amount: tonweb.utils.toNano('0.01'),
            seqno: seqno,
            payload: jettonTransferBody,
            sendMode: 3
        }).send()

image

botao commented 2 weeks ago

I have the same issue, but I find the reason is my ton wallet not deployed.