Error when calling wallet history

Hi everyone!

When I’m executing this request, I’m constantly getting 500 or 504 errors. Other requests work fine. What am doing wrong?

GET https://deep-index.moralis.io/api/v2.2/wallets/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/history?chain=0x1&order=ASC&from_date=2022-09-05T03:05:57.000Z

Hi @yury

It seems like you are trying to query vitaliks address, which usually contains a ton of tokens and transactions. So the response seems to get timedout due to the amount of data need to be processed.

I would recommend adding both from and to dates and reduce the range of dates you are trying to get data. You will have to get the data from different date ranges separately.

Example: With from date increased to 2023 should work faster.
https://deep-index.moralis.io/api/v2.2/wallets/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/history?chain=0x1&order=ASC&from_date=2023-09-05T03:05:57.000Z

Hi @johnversus

Thank you for your answer. Unfortunately filtering by two dates is not what we need, and moreover, it doesn’t help. I tried to reduce the timeframe to only one day and still got an error in response:

https://deep-index.moralis.io/api/v2.2/wallets/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/history?chain=eth&from_date=2022-09-05T03%3A05%3A57.000Z&to_date=2022-09-06T03%3A05%3A57.000Z&order=ASC

Let me report this to the devs and get back to you.