From f0799bf3aa3449a4844b99c39ecf1b5a08546c22 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 11 Jun 2024 12:49:06 +0200 Subject: [PATCH] Fix getTransactions method internal error (#209) --- cmd/soroban-rpc/internal/methods/get_transaction.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/soroban-rpc/internal/methods/get_transaction.go b/cmd/soroban-rpc/internal/methods/get_transaction.go index 399243e3..ad0dac59 100644 --- a/cmd/soroban-rpc/internal/methods/get_transaction.go +++ b/cmd/soroban-rpc/internal/methods/get_transaction.go @@ -105,7 +105,10 @@ func GetTransaction( log.WithError(err). WithField("hash", txHash). Errorf("failed to fetch transaction") - return response, err + return response, &jrpc2.Error{ + Code: jrpc2.InternalError, + Message: err.Error(), + } } response.ApplicationOrder = tx.ApplicationOrder