Closed ryuash closed 2 years ago
Update: I went with solution 2 on my end. Getting trust issues with actions at the moment.
Hey @ryuash this error is being thrown because DelegatorDelegations
query returns an error instead of an empty object if the given address doesn't have any active delegations (coz of this line ) It was fixed in v.0.43.x
so it only happens with chains that are still using stargate sdk. I will add a fix to stargate branch so we can better handle those exceptions on the backend
Okay thanks ;)
Current Query:
If even one of these actions return an error the whole query will return an error.
For ex: In likecoin testnet: https://testnet.likecoin.bigdipper.live/accounts/cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn I'm getting the following error:
error while getting delegator delegations: rpc error: code = NotFound desc = rpc error: code = NotFound desc = unable to find delegations for address cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn: key not found
Solution #1: If any of the actions return an error return their empty type.
Solution #2: The ui breaks up all actions in to its own query and error handles on the frontend
Let me know your thoughts