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

Convert to Currency ID Failed  #26

@twpony

Description

@twpony

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions