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

exitcode=36 Cannot run message on account: inbound external message rejected by transaction #1459

Closed
mahnunchik opened this issue Jan 7, 2025 · 2 comments

Comments

@mahnunchik
Copy link

A regular transaction from a regular account could not be sent with the following 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 2B8403E3965420876FD09E9DA7B431106887AE169675F5BF4FBC628E817207C7:
exitcode=36, steps=13, gas_used=0
VM Log (truncated):
...CTPUSHCONST 19 (xC_,1)
execute DICTIGETJMPZ
execute PUSHPOW2 9
execute LDSLICEX
execute DUP
execute LDU 32
execute LDU 32
execute LDU 32
execute XCHG s2
execute NOW
execute LEQ
execute THROWIF 36
default exception handler, terminating vm with exit code 36

The error code:

36 | Action Phase | Invalid Destination address in the outbound message.

The error code does not match the error message. I do not understand how to solve this issue. Transactions from another account can be sent to the same address without any problems.

@mahnunchik
Copy link
Author

It seems related xssnick/tonutils-go#282

@EmelyanenkoK
Copy link
Member

EmelyanenkoK commented Jan 15, 2025

execute THROWIF 36

Contract itself throws an exception with the exit_code that coincide with Action Phase error (so it is not Action Phase error, just the same reused code).
From TVM output it seems that something wrong with the time. Contract expects that in incoming message time (probably expiration_at) will be not less than now(). Maybe external message sender host has incorrect time.

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

3 participants
@mahnunchik @EmelyanenkoK and others