chainapsis / keplr-chain-registry

Protocol for Integrating Non-Native Chains to Keplr
https://chains.keplr.app
Other
324 stars 478 forks source link

Validate failure #751

Closed auridasf closed 1 month ago

auridasf commented 1 month ago

Is validate supposed to be working? I am getting this even for cosmoshub:

yarn validate cosmos/cosmoshub.json
ReferenceError: fetch is not defined
    at /Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/simple-fetch/src/fetch.ts:63:19
    at Generator.next (<anonymous>)
    at /Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/simple-fetch/build/fetch.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/simple-fetch/build/fetch.js:4:12)
    at simpleFetch (/Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/simple-fetch/build/fetch.js:48:12)
    at /Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/chain-validator/src/connection.ts:38:37
    at Generator.next (<anonymous>)
    at /Users/aurifra/VSProjects/keplr-chain-registry/node_modules/@keplr-wallet/chain-validator/build/connection.js:8:71
    at new Promise (<anonymous>)
Failed to get response /status from rpc endpoint
editaahn commented 1 month ago

It works on my side. Pull the latest change from main branch and try again please?

auridasf commented 1 month ago

It works on my side. Pull the latest change from main branch and try again please?

I did it after pulling latest, same thing. Even tried rm -fr node_modules and fresh yarn install, same thing.

editaahn commented 1 month ago

I just can guess it is probably a Node.js version issue since it's not able to refer fetch. What version of Node.js are you using?

auridasf commented 1 month ago

Thanks, upgrading node to latest stable helped!