500 Internal Server Error for get verbose transaction

check on wallet sneakyninjapants.eth for example.

this works for me:

     --url 'https://deep-index.moralis.io/api/v2/0xBdD95ABE8a7694CCD77143376b0fBea183E6a740?chain=eth' \
     --header 'accept: application/json' \
     --header 'X-API-Key: API_KEY_HERE'

are you using some specific parameters?

you can also test here directly in docs interface

I am trying to get all his transactions and using a cursor. try with a cursor.

ok, how many pages did you try?

I am trying to get all of them.

it brakes on page 21 it seems.
from block 0x0
to latest block

you could retry a request that fails few times, probably it fails in 15 seconds with a timeout and it returns a 500 error

Also when i retry it it doesnt work.

Can you check in your end to help find a solution? I wanted to upgrade to Enterprise but now have to change my whole code and find another provider if it keeps braking. need an api that works 100% of the times.

also this wallet…
0x2ea4815F47D685eD317e8bd243b89bCb26b369Fa

thats my code:

const getVerboseTransactions = asyncHandler(async (cursor, toAddress) => {
let response;
let error = null;

do {
error = null;
try {
response = await Moralis.EvmApi.transaction.getWalletTransactionsVerbose({
chain: “0x1”,
address: toAddress,
cursor: cursor,
fromBlock: lastBlock,
});
} catch (e) {
error = “error”;
console.log(e);
}
} while (error === “error”);
return response;
});

what are the exact parameters that you use for the initial query? disable_total is set to true or false?

sent the code one message above, anything else you need?

now it breaks on page 3.

it looks like it is not a timeout issue, we’ll have to investigate, I also got until page 20 only

kk thanks. hoping for good news

How much time you approx it will take you to solve it? I have business to run here…

it could take some time, I don’t have an ETA now, it could be more than days or more than weeks

it should be fixed now

1 Like