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

Sentinel hub can't load grants #787

Closed
LoulouCrypto opened this issue Aug 10, 2024 · 5 comments
Closed

Sentinel hub can't load grants #787

LoulouCrypto opened this issue Aug 10, 2024 · 5 comments

Comments

@LoulouCrypto
Copy link

I can't load grants from Sentinel hub chain
I try with personal rest server but nothing
I have this error :
Failed with error: Failed to load grants: undefined module=health

@tombeynon
Copy link
Contributor

Strange, does it always throw that error? Are you using sentinelhub as the chain name? And is the REST API accessible to the restake script?

@LoulouCrypto
Copy link
Author

Hm no it don't make the error every times
i put sentinel as name ... i try sentinelhub

@LoulouCrypto
Copy link
Author

ok in chain registery it's know as sentinel
i connect to the REST API all good but the bug is when it try to collect grant

@roomit-xyz
Copy link

[2024-08-20T16:28:16.440Z] info: Failed with error: Failed to load grants: undefined module=health
[2024-08-20T16:28:16.441Z] info: Failed attempt 1/3, retrying in 30 seconds... module=health

I think this bugs, always like that when grants

@tombeynon
Copy link
Contributor

It looks like the request is timing out often, even with a page size of 1. Sometimes the request will succeed but return no grants. Other times it responds correctly.

Aside from using your own REST API, the only other suggestion would be reducing the batchPageSize config mentioned in the docs and see if that helps.

There's not much else we can do about this, I'm not sure why it's affecting Sentinel so badly but I would suggest raising with the team over there to see if there's an issue in their code.

The request we use is e.g.: https://rest.cosmos.directory/sentinel/cosmos/authz/v1beta1/grants/grantee/{botAddress}?pagination.limit=100

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

No branches or pull requests

3 participants