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

Error when using with cosmJS.getAccount() #20

Open
ap-justin opened this issue Nov 18, 2021 · 2 comments
Open

Error when using with cosmJS.getAccount() #20

ap-justin opened this issue Nov 18, 2021 · 2 comments

Comments

@ap-justin
Copy link

Hi! I'd really appreciate some help on resolving this. I am trying to use Keplr with cosmJS
as demonstrated here
https://stackblitz.com/edit/react-ts-pezzyd?file=Keplr.tsx

and gets this error when calling cosmJS.getAccount

auth.ts:72 Uncaught (in promise) Error: Unexpected response data format
    at Object.account (auth.ts:72)
    at async SigningCosmosClient.getAccount (cosmosclient.ts:222)
    at async connect (VM48 Keplr.tsx:37)
@Thunnini
Copy link
Member

Hmm... I think this is an error from cosmjs, not from Keplr. Try using the stargate version cosmjs instead of launchpad. If that doesn't work, it might be better to ask in the cosmjs repo.

@ap-justin
Copy link
Author

Thank you! @Thunnini. I will try your suggestion

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

2 participants