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

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

Open
TycheGames opened this issue May 14, 2024 · 19 comments

Comments

@TycheGames
Copy link

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):

  • OS: [Mac OS]
  • Typescript
  • Version [e.g. 22]

Additional Context

No response

@SaD1sT1337
Copy link

same issue...

@leoenes
Copy link

leoenes commented May 23, 2024

same issue also

@m1faridi
Copy link

m1faridi commented Jun 9, 2024

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

@Chidiebere95
Copy link

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

@gyloong
Copy link

gyloong commented Jul 12, 2024

same issue also...

@Kinyabundi
Copy link

same issue also

@slyofzero
Copy link

slyofzero commented Jul 16, 2024

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
Copy link

Mae6e commented Jul 20, 2024

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
Copy link

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
Copy link

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
Copy link

Menmaz commented Sep 14, 2024

Team no working ?

@joaomatbarbosa
Copy link

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

@GooseBumpsOS
Copy link

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

@Omokami
Copy link

Omokami commented Nov 1, 2024

same issue also

@GooseBumpsOS

please help me

@Omokami
Copy link

Omokami commented Nov 1, 2024

please tell me more detail

@GooseBumpsOS
Copy link

GooseBumpsOS commented Nov 1, 2024

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
Copy link

Omokami commented Nov 2, 2024

@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
Copy link

botao commented Nov 14, 2024

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

@mrtnetwork
Copy link

I encountered the same issue on the TON testnet when an account remains idle for a few months. I believe this might be related to the node or missing account transactions. In the case of my Jetton account, its state changed to 'frozen,' although my wallet is still active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests