nimiq / core-js

Official JavaScript implementation of the Nimiq protocol
https://nimiq.com
Other
988 stars 207 forks source link

Failed to retrieve transactions #652

Open unek opened 4 months ago

unek commented 4 months ago

New issue checklist

General information

Bug report

Expected behavior

getTransaction() returning transaction data

Actual behavior

getTransaction() throws an error for seemingly every transaction. Additionally, the console is full of logs saying: BaseMiniConsensus: Failed to retrieve transaction proof to update mempool: Failed to retrieve transactions proof for [...]

This did not happen before. Happens only on one machine, does not throw on my dev setup.

Steps to reproduce

Run client.getTransaction('8393F45CEAE96110F598CB1A2CB4962480B073EECB8403B8B312EC1C4D610005')

Crash log? Screenshots? Videos? Sample project?

getTransaction('8393F45CEAE96110F598CB1A2CB4962480B073EECB8403B8B312EC1C4D610005') throws Error: Failed to retrieve transactions for g5P0XOrpYRD1mMsaLLSWJICwc+7LhAO4sxLsHE1hAAU=

sisou commented 4 months ago

Hi! I am unable to reproduce this, running client.getTransaction('8393F45CEAE96110F598CB1A2CB4962480B073EECB8403B8B312EC1C4D610005') on https://wallet.nimiq.com (get the client with client = await gimmeNimiqClient()). There I get the transaction details just fine.

What kind of environment are you running these commands in? Does your client have consensus when you run the command?

unek commented 4 months ago

resetting the consensus (I think that's what it was, docs are down now, can't remember the method) few minutes after the app started fixed it, but only until next launch. now I switched to a volatile light client, and I'm no longer getting any errors.