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

getPoolsPricesPairs error - unknown pool type #25

Closed
stephaneHerraiz opened this issue Jan 18, 2023 · 5 comments
Closed

getPoolsPricesPairs error - unknown pool type #25

stephaneHerraiz opened this issue Jan 18, 2023 · 5 comments

Comments

@stephaneHerraiz
Copy link

Whe I run the getPoolsPricesPairs function :

this.client = await osmosis.ClientFactory.createRPCQueryClient({ rpcEndpoint: 'https://rpc.osmosis.zone'});
const {
    pools,
    prices,
    pairs
} = await getPoolsPricesPairs(this.client);

I receive this error :
Uncaught Error Error: unknown pool type
at (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@cosmology/core/main/utils/osmo/pools.js:87:25)
at _callee$ (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@cosmology/core/main/utils/osmo/pools.js:76:39)
at tryCatch (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
at (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
at (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
at asyncGeneratorStep (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at processTicksAndRejections (internal/process/task_queues:95:5)

@Steven-Chang
Copy link

me too

@Steven-Chang
Copy link

@stephaneHerraiz - This has got to do with:

osmosis-labs/osmojs#5

If you look at error log and the file and line
at (/home/herraiz/dev/cosmos-osmosis-fetcher/node_modules/@cosmology/core/main/utils/osmo/pools.js:87:25)
You'll see that the error is throw when there is no data.$typeUrl - You could fork and modify the files as required or we'll have to wait for cosmology-tech to update.

@pyramation
Copy link
Contributor

which versions are you both running? This should be solved in the latest.

@Steven-Chang
Copy link

which versions are you both running? This should be solved in the latest.

Hi @pyramation,

I have in my packagon.json:

"@cosmology/core": "^1.16.0",
...
"osmojs": "^13.0.0-rc.7-i-alpha",

@pyramation
Copy link
Contributor

should be fixed!

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