keplr-example icon indicating copy to clipboard operation
keplr-example copied to clipboard

Error when using with cosmJS.getAccount()

Open ap-justin opened this issue 4 years ago • 2 comments

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)

ap-justin avatar Nov 18 '21 11:11 ap-justin

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.

Thunnini avatar Nov 18 '21 12:11 Thunnini

Thank you! @Thunnini. I will try your suggestion

ap-justin avatar Nov 18 '21 12:11 ap-justin