Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Hub : assets/balances page takes a lot of time to load #10476

Open
1 of 4 tasks
muddlebee opened this issue Apr 16, 2024 · 11 comments · Fixed by #10592
Open
1 of 4 tasks

Asset Hub : assets/balances page takes a lot of time to load #10476

muddlebee opened this issue Apr 16, 2024 · 11 comments · Fixed by #10592

Comments

@muddlebee
Copy link

muddlebee commented Apr 16, 2024

  • I'm submitting a ...
  • Bug report
  • Feature request
  • Support request
  • Other
  • What is the current behavior and expected behavior?

assets/balances at Polkadot Asset Hub just keeps loading, even with different RPCs. I noticed this common behaviour.

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fstatemint-rpc-tn.dwellir.com#/assets/balances
image

  • What is the motivation for changing the behavior?

Optimize the APIs/fetch functionality of assets/balances at Asset Hub.

  • Please tell us about your environment:
  • Version: Live URL
@IkerAlus
Copy link

not able to reproduce, it took less than a second from several devices.

I would say it was a temporary outage at the RPC provider side.

@muddlebee
Copy link
Author

muddlebee commented Apr 23, 2024

@IkerAlus specifically the "Balances" tab

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fstatemint-rpc-tn.dwellir.com#/assets/balances

image

I tested with multiple RPCs still not loading for me 🤔

@IkerAlus
Copy link

@muddlebee you are right, it is not that it keeps loading but it simply does not show any data even after selecting a specific asset to query for balances:
Screenshot 2024-04-25 at 15 25 44

@MoMannn
Copy link

MoMannn commented May 17, 2024

This is not as much of loading for a long time but straight bug:
Screenshot 2024-05-17 at 15 49 14

@TarikGul
Copy link
Member

@MoMannn How would i reproduce the issue: What chain did you go to, and what action did you try to perform?

@muddlebee
Copy link
Author

muddlebee commented May 17, 2024

@TarikGul check here #10476 (comment)

error is coming due to this https://github.com/polkadot-js/apps/blob/master/packages/page-assets/src/Balances/index.tsx#L24-L25

const [info, setInfo] = useState<AssetInfoComplete | null>(null);

this is returning null so id is not populated in "Balances"

@muddlebee
Copy link
Author

muddlebee commented May 17, 2024

I suspect the bug was introduced here https://github.com/polkadot-js/apps/pull/10423/files

@TarikGul
Copy link
Member

@muddlebee Feel free to test out the solution in: #10592

@muddlebee
Copy link
Author

muddlebee commented May 18, 2024

@TarikGul still facing the issue and it keeps loading with some console errors

image

also FYI, I do have sufficient asset. If I select any particular asset in filter, it shows up

image

@TarikGul
Copy link
Member

@muddlebee I'll have it fully fixed on Monday. But for now will reopen in.

@TarikGul TarikGul reopened this May 18, 2024
@TarikGul
Copy link
Member

So I get the same error in the browser, but I don't have a loading issue oddly enough.

That being said what is so weird about this error is that it doesn't persist in in dev mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants