So im getting erros when calling the function getParsedTransaction()
for example form the RPC-Node which is an 502 (Gateway-Error)
How would one implement a way to catch the error in JS/TS since the code is not continuing its execution once this error occurs.
The current implemented try/catch block it not catching the error it stops somewhere in the solana/web3 lib.
try {
return await this.connection.getSignaturesForAddress(
new PublicKey(this.program_id),
{
before,
limit: parseInt(process.env.TXLIMIT ?? "10"),
},
"finalized",
)
} catch (error) {
console.log(error);
}