# Terra Station - Api returned 502 bad gateway (502)

**URL:** <https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491>\
**Category:** Koinly Support\
**Created:** [October 12, 2022, 3:33am UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491 "2022-10-12T03:33:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Coleman](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/christopher_coleman/32/1856_2.png) [@Christopher\_Coleman](https://discuss.koinly.io/u/Christopher_Coleman)\
**Post date:** [October 12, 2022, 3:33am UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/1 "2022-10-12T03:33:46Z")

</div>

**Describe the problem:**  
When trying to sync TerraStation wallet, getting an error that says API returned 502 bad gateway

**Which exchange/wallet is this regarding?**  
TerraStation

**How did you import data into this wallet?**  
API

**What have you tried to fix this so far?**  
I have been trying to resync the wallet for the last couple of hours. If I got the error, I would delete the wallet and try again.

---

<div class="post-metadata">

**Author:** ![MicLedger](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/micledger/32/1968_2.png) [@MicLedger](https://discuss.koinly.io/u/MicLedger)\
**Post date:** [November 1, 2022, 3:53pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/7 "2022-11-01T15:53:22Z")

</div>

I am also facing the same sync error.

---

<div class="post-metadata">

**Author:** ![Ali\_Koinly](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/ali_koinly/32/8406_2.png) [@Ali\_Koinly](https://discuss.koinly.io/u/Ali_Koinly)\
**Post date:** [October 12, 2022, 4:32pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/2 "2022-10-12T16:32:57Z")

</div>

Hey @Christopher_Coleman 👋

Could you please contact us via Livechat so we can take a look at the wallet and troubleshoot the error for you?

For now, you can obtain CSV files of your trades from www.stake.tax and import this instead whilst the connection is working again. 👍

---

<div class="post-metadata">

**Author:** ![patrickdaj](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/patrickdaj/32/1891_2.png) [@patrickdaj](https://discuss.koinly.io/u/patrickdaj)\
**Post date:** [November 22, 2022, 3:33pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/8 "2022-11-22T15:33:38Z")

</div>

If we previously used the API from trackterra for 2021 and some of 2022 and then use a stake.tax CSV import to fill in the remainder of 2022 will that lead to any issues or is that the preferred method to update?

---

<div class="post-metadata">

**Author:** ![Ali\_Koinly](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/ali_koinly/32/8406_2.png) [@Ali\_Koinly](https://discuss.koinly.io/u/Ali_Koinly)\
**Post date:** [October 12, 2022, 5:25pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/3 "2022-10-12T17:25:10Z")

</div>

Further update: Trackterra seems to be down (our API provider) so the issue is not on our end.

Please standby for updates, in the meantime use CSV imports as mentioned in prev reply. 👍

---

<div class="post-metadata">

**Author:** ![Christopher\_Coleman](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/christopher_coleman/32/1856_2.png) [@Christopher\_Coleman](https://discuss.koinly.io/u/Christopher_Coleman)\
**Post date:** [October 12, 2022, 6:18pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/4 "2022-10-12T18:18:32Z")

</div>

Thanks for the update! When I create a CSV import, it looks like the total number of rows is different than when I create a CSV from Finder.Terra.Money. Would you recommend one or the other? Just want to make sure that I’m getting this to be as accurate as possible.

Additionally, it doesn’t look like Stake.Tax includes all tokens, such as Psi. Is this something that Koinly is aware of?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kagan\_Sen](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/kagan_sen/32/606_2.png) [@Kagan\_Sen](https://discuss.koinly.io/u/Kagan_Sen)\
**Post date:** [October 16, 2022, 2:11pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/5 "2022-10-16T14:11:50Z")

</div>

I have the same problem - only days left til the return deadline. Can you please update if anyone’s trying to fix this?

---

<div class="post-metadata">

**Author:** ![Ali\_Koinly](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/ali_koinly/32/8406_2.png) [@Ali\_Koinly](https://discuss.koinly.io/u/Ali_Koinly)\
**Post date:** [October 16, 2022, 4:13pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/6 "2022-10-16T16:13:24Z")

</div>

Hey @Kagan_Sen @Christopher_Coleman

As mentioned in the previous post, the error is with our provider and we can only await updates from them.

I will have a chat with the team internally regarding the missed tokens with stake.tax and get back to you. It may be that we need to account for these tokens manually, but hoping that’s not the case. 👍

---

<div class="post-metadata">

**Author:** ![Michael\_Koinly](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/michael_koinly/32/10244_2.png) [@Michael\_Koinly](https://discuss.koinly.io/u/Michael_Koinly)\
**Post date:** [November 23, 2022, 4:18pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/9 "2022-11-23T16:18:28Z")

</div>

Hi @patrickdaj,

You’re spot on that is the way to go for the moment. To avoid any duplicate issues, have the date of API imports stop when the CSV from [stake.tax](https://stake.tax/) begins.

If you have any issues in the process, please [connect with our support team](https://hello@koinly.io). We’re happy to help!

Have an awesome day, all!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex052/uploads/koinly_app/original/1X/7ac58e5593a7122893d066794a7254dcdb5ddb31.png) [@system](https://discuss.koinly.io/u/system)\
**Post date:** [January 22, 2023, 4:18pm UTC](https://discuss.koinly.io/t/terra-station-api-returned-502-bad-gateway-502/15491/10 "2023-01-22T16:18:59Z")

</div>

Closed on January 22, 2023, 4:18pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
