Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Convert to Currency ID Failed #26

Open
twpony opened this issue Dec 13, 2021 · 0 comments
Open

Convert to Currency ID Failed #26

twpony opened this issue Dec 13, 2021 · 0 comments

Comments

@twpony
Copy link

twpony commented Dec 13, 2021

I have tried this project in my localhost docker. My endpoint: wss://karura.api.onfinality.io/public-ws. And I set StartBlock: 500000 in project.yaml. I use the latest version of @subquery/types(the original version "^0.8.5" in this package.json will throw error, so i changed the latest version setting). Other settings is the same as the project. But I get the [Convert to Currency ID] Error as follows, and the error seems to happen at block 500025.

subquery-node_1 | 2021-12-13T08:08:41.415Z <fetch> INFO fetch block [500000,500099], total 100 blocks subquery-node_1 | 2021-12-13T08:08:56.088Z <sandbox> INFO convertToCurrencyIdFailed: convert to currency id failed subquery-node_1 | at forceToTokenSymbolCurrencyId (/app/node_modules/@acala-network/sdk-core/converter.js:44:11) subquery-node_1 | at forceToCurrencyId (/app/node_modules/@acala-network/sdk-core/converter.js:74:20) subquery-node_1 | at getPool (/app/dist/handlers/dex/pool.js:21:94) subquery-node_1 | at processTicksAndRejections (internal/process/task_queues.js:95:5) subquery-node_1 | at async updatePoolBySwapNew (/app/dist/handlers/dex/pool.js:322:22) subquery-node_1 | at async updatePoolBySwap (/app/dist/handlers/dex/pool.js:198:9) subquery-node_1 | at async Promise.all (index 0) subquery-node_1 | at async Dispatcher.dispatch (/app/dist/handlers/utils/dispatcher.js:23:9) subquery-node_1 | at async createEvent (/app/dist/handlers/event.js:96:5) subquery-node_1 | at async Object.handleEvent (/app/dist/mappings/mappingHandlers.js:10:5) subquery-node_1 | 2021-12-13T08:08:56.090Z <fetch> ERROR failed to index block at height 500025 handleEvent() convertToCurrencyIdFailed: convert to currency id failed subquery-node_1 exited with code 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant