neo-project / neo

NEO Smart Economy
MIT License
3.47k stars 1.03k forks source link

Cant Deserialize Json block 2685489 #2906

Closed cschuchardt88 closed 1 year ago

cschuchardt88 commented 1 year ago

Describe the bug Im getting exception FormatException when trying to deserialize an OracleResponse. This is at block 2685489 of testnet T5.

Exception

System.FormatException: 'The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.'

Call Stack

[External Code]
Neo.dll!Neo.SmartContract.Native.StdLib.JsonDeserialize(Neo.SmartContract.ApplicationEngine engine, byte[] json) Line 52
    at C:\tmp\neo\src\Neo\SmartContract\Native\StdLib.cs(52)
[External Code]
Neo.dll!Neo.SmartContract.Native.NativeContract.Invoke(Neo.SmartContract.ApplicationEngine engine, byte version) Line 207
    at C:\tmp\neo\src\Neo\SmartContract\Native\NativeContract.cs(207)
Neo.dll!Neo.SmartContract.ApplicationEngine.CallNativeContract(byte version) Line 103
    at C:\tmp\neo\src\Neo\SmartContract\ApplicationEngine.Contract.cs(103)
[External Code]
Neo.dll!Neo.SmartContract.ApplicationEngine.OnSysCall(Neo.SmartContract.InteropDescriptor descriptor) Line 523
    at C:\tmp\neo\src\Neo\SmartContract\ApplicationEngine.cs(523)
Neo.dll!Neo.SmartContract.ApplicationEngine.OnSysCall(uint method) Line 507
    at C:\tmp\neo\src\Neo\SmartContract\ApplicationEngine.cs(507)
[External Code]
Neo.dll!Neo.Ledger.Blockchain.Persist(Neo.Network.P2P.Payloads.Block block) Line 424
    at C:\tmp\neo\src\Neo\Ledger\Blockchain.cs(424)
Neo.dll!Neo.Ledger.Blockchain.OnNewBlock(Neo.Network.P2P.Payloads.Block block) Line 286
    at C:\tmp\neo\src\Neo\Ledger\Blockchain.cs(286)
Neo.dll!Neo.Ledger.Blockchain.OnInventory(Neo.Network.P2P.Payloads.IInventory inventory, bool relay) Line 232
    at C:\tmp\neo\src\Neo\Ledger\Blockchain.cs(232)
Neo.dll!Neo.Ledger.Blockchain.OnReceive(object message) Line 371
    at C:\tmp\neo\src\Neo\Ledger\Blockchain.cs(371)
[External Code]

To Reproduce Steps to reproduce the behavior:

Expected behavior

Screenshots

image image

Platform:

cschuchardt88 commented 1 year ago

I thought maybe its my node's state, so I'm trying to resync with new backup from https://sync.ngd.network/ but Testnet N3 T5 is only 3MB for full backup, so something weird is going on....

cschuchardt88 commented 1 year ago

problem went away, after getting new backup