terra-money / fcd-classic

Terra ETL + RestFul API Server
https://fcd.terra.dev/swagger
MIT License
63 stars 42 forks source link

Cannot destructure property 'tx_response' of '(intermediate value)' as it is undefined #148

Closed kamsz closed 2 years ago

kamsz commented 2 years ago

Running bombay branch collector seems consistently crashing at specific block heights.

Columbus:

12-27 05:30 [INFO]: collectBlock: begin transaction for block 4822834
12-27 05:30 [ERROR]: Cannot destructure property 'tx_response' of '(intermediate value)' as it is undefined.
TypeError: Cannot destructure property 'tx_response' of '(intermediate value)' as it is undefined.
    at Object.getTx (/fcd/src/lib/lcd.ts:55:11)
    at async generateLcdTransactionToTxEntity (/fcd/src/collector/block/tx.ts:166:14)

Bombay:

12-26 23:36 [INFO]: collectBlock: begin transaction for block 6682919
12-26 23:36 [ERROR]: Cannot destructure property 'tx_response' of '(intermediate value)' as it is undefined.
TypeError: Cannot destructure property 'tx_response' of '(intermediate value)' as it is undefined.
    at Object.getTx (/fcd/src/lib/lcd.ts:55:11)
    at async generateLcdTransactionToTxEntity (/fcd/src/collector/block/tx.ts:166:14)
kamsz commented 2 years ago

Bombay calls:

/cosmos/tx/v1beta1/txs/C163DA039DCFFE4A640AF3816472FE05B5514FA6B1A1A5B0E505CFEEB2BC4A6F
/cosmos/tx/v1beta1/txs/26BC842EB5746200354CE0D2A1BDF50FED3354E810446D6949951F71070E9174
/cosmos/tx/v1beta1/txs/A6CE7C98469427731D946EB27684152F0966697B18687F5F2E6ABA956966CC3A
12-27 06:25 [INFO]: collectBlock: begin transaction for block 6682919
12-27 06:25 [ERROR]: /cosmos/tx/v1beta1/txs/C163DA039DCFFE4A640AF3816472FE05B5514FA6B1A1A5B0E505CFEEB2BC4A6F
APIError: /cosmos/tx/v1beta1/txs/C163DA039DCFFE4A640AF3816472FE05B5514FA6B1A1A5B0E505CFEEB2BC4A6F
kamsz commented 2 years ago

Columbus:

12-27 06:27 [INFO]: collectBlock: begin transaction for block 4822834
12-27 06:27 [ERROR]: /cosmos/tx/v1beta1/txs/E1F67B0E0F7ABE9998FB38B3459DF1C68EA225200428E056943ECB217229C970
APIError: /cosmos/tx/v1beta1/txs/E1F67B0E0F7ABE9998FB38B3459DF1C68EA225200428E056943ECB217229C970
hanjukim commented 2 years ago

What LCD server do you use? I have no problem with accessing https://bombay-lcd.terra.dev/cosmos/tx/v1beta1/txs/C163DA039DCFFE4A640AF3816472FE05B5514FA6B1A1A5B0E505CFEEB2BC4A6F but there's rate limit in public infrastructure. You should use dedicated node

hanjukim commented 2 years ago

I had a similar incident in my node. The problem was that the node didn't indexed transaction somehow.

kamsz commented 2 years ago

What does it mean @hanjukim? How to avoid this situation? I'm using dedicated LCD (from full snapshot).

kamsz commented 2 years ago

@hanjukim?

roccomuso commented 2 years ago

any news on this?