You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExceptionFormatter에서 MessagePack을 통해 예외 관련 내용을 Serialize/Deserialize 처리를 해주고 있다.
근데 이 Serialize된 결과물을 Deserialize 하지 못해주는 경우가 있음
예
Libplanet.Action.UnexpectedlyTerminatedActionException
Mesage:The action Nekoyume.Action.TransferAsset (block #12263717, pre-evaluation hash 8b95f79000bbf4d8ea94518414daf9fb259309fd70a5c86acd8ce48205702dce, tx 04a5c521d0c1540e70c9a5877f13d7e746582e93b561a15388ec3092849df139 threw an exception during execution. See also this exception's InnerException property
data: null
-- stack+1
Mesage: Cannot burn or transfer 0.01 NCG from 0x0b8ac00f614985693EfcD80E3b8124c98ae541EB as the current balance of 0x0b8ac00f614985693EfcD80E3b8124c98ae541EB is 0 NCG.
data: null
InnerException: null
StackTraceString: at Libplanet.Action.State.CurrencyAccount.TransferRawAssetV7(Address sender, Address recipient, BigInteger rawValue) in /app/Lib9c/.Libplanet/src/Libplanet.Action/State/CurrencyAccount.cs:line 270
at Nekoyume.Action.TransferAsset.Execute(IActionContext context) in /app/Lib9c/Lib9c/Action/TransferAsset.cs:line 86
at Libplanet.Action.ActionEvaluator.EvaluateAction(IPreEvaluationBlock block, ITransaction tx, IActionContext context, IAction action, IStateStore stateStore, Boolean isPolicyAction, ILogger logger) in /app/Lib9c/.Libplanet/src/Libplanet.Action/ActionEvaluator.cs:line 303
HResult: -2146233088
Source: Libplanet.Action
Address: Exception
Message: The account 0x0784263E46610B5aEaA410eD84d997D50e3b8833's balance of Mead (c722affab6098bf84ebe0afb69a748c2dc2a4d63) isinsufficient to pay gas fee: 0 Mead < 1 Mead.
at Libplanet.Action.FeeCollector.Mortgage(IWorld world) in /app/Lib9c/.Libplanet/src/Libplanet.Action/FeeCollector.cs:line 80
at Libplanet.Action.ActionEvaluator.EvaluateAction(IPreEvaluationBlock block, ITransaction tx, IActionContext context, IAction action, IStateStore stateStore, Boolean isPolicyAction, ILogger logger)
Source: Libplanet.Action
두 액션에서 Serialize된 Exception정보를 읽어오는 과정에서 "name: Address"키의 값이 'LibPlanet.Crypto.Address'인 경우 타입을 찾지 못하고 예외 발생
The text was updated successfully, but these errors were encountered:
ExceptionFormatter에서 MessagePack을 통해 예외 관련 내용을 Serialize/Deserialize 처리를 해주고 있다.
근데 이 Serialize된 결과물을 Deserialize 하지 못해주는 경우가 있음
예
Libplanet.Action.UnexpectedlyTerminatedActionException
Mesage:The action Nekoyume.Action.TransferAsset (block #12263717, pre-evaluation hash 8b95f79000bbf4d8ea94518414daf9fb259309fd70a5c86acd8ce48205702dce, tx 04a5c521d0c1540e70c9a5877f13d7e746582e93b561a15388ec3092849df139 threw an exception during execution. See also this exception's InnerException property
data: null
-- stack+1
Mesage: Cannot burn or transfer 0.01 NCG from 0x0b8ac00f614985693EfcD80E3b8124c98ae541EB as the current balance of 0x0b8ac00f614985693EfcD80E3b8124c98ae541EB is 0 NCG.
data: null
InnerException: null
StackTraceString: at Libplanet.Action.State.CurrencyAccount.TransferRawAssetV7(Address sender, Address recipient, BigInteger rawValue) in /app/Lib9c/.Libplanet/src/Libplanet.Action/State/CurrencyAccount.cs:line 270
at Nekoyume.Action.TransferAsset.Execute(IActionContext context) in /app/Lib9c/Lib9c/Action/TransferAsset.cs:line 86
at Libplanet.Action.ActionEvaluator.EvaluateAction(IPreEvaluationBlock block, ITransaction tx, IActionContext context, IAction action, IStateStore stateStore, Boolean isPolicyAction, ILogger logger) in /app/Lib9c/.Libplanet/src/Libplanet.Action/ActionEvaluator.cs:line 303
HResult: -2146233088
Source: Libplanet.Action
Address: Exception
Message: The account 0x0784263E46610B5aEaA410eD84d997D50e3b8833's balance of Mead (c722affab6098bf84ebe0afb69a748c2dc2a4d63) isinsufficient to pay gas fee: 0 Mead < 1 Mead.
at Libplanet.Action.FeeCollector.Mortgage(IWorld world) in /app/Lib9c/.Libplanet/src/Libplanet.Action/FeeCollector.cs:line 80
at Libplanet.Action.ActionEvaluator.EvaluateAction(IPreEvaluationBlock block, ITransaction tx, IActionContext context, IAction action, IStateStore stateStore, Boolean isPolicyAction, ILogger logger)
Source: Libplanet.Action
두 액션에서 Serialize된 Exception정보를 읽어오는 과정에서 "name: Address"키의 값이 'LibPlanet.Crypto.Address'인 경우 타입을 찾지 못하고 예외 발생
The text was updated successfully, but these errors were encountered: