Integration with Theta Network Fails Due to 'Latest Best Height is not available' Error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript
- Lĩnh vực
- backend, blockchain
Hướng nghiên cứu
Reproduce the failure from the theta-starter branch with yarn dev, then inspect @subql/node-core/dist/indexer/fetch.service.js and the @subql/node-ethereum/dist/init.js call path shown in the stack trace. Compare the Theta setup with the EVM assumptions involved in fetching the latest best height. Done means the Theta project initializes and indexes without this error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Issue Description:
When trying to integrate Theta Network with SubQuery, the initialization process fails, raising an error related to "Latest Best Height is not available." This seems to come from /node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js.
Log Output:
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.113Z <nestjs-#3> INFO DbModule dependencies initialized
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.114Z <indexer> INFO indexer manager started
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.114Z <indexer> INFO indexer manager start
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.115Z <nestjs-#3> INFO IndexerModule dependencies initialized
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.129Z <nestjs-#3> INFO Nest application successfully started
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.145Z <store> INFO Historical state is enabled
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.192Z <indexer> INFO indexer manager started
theta-starter-subquery-node-1 | 2023-09-07T15:30:34.195Z <subql-node> INFO Node started on port: 3000
theta-starter-subquery-node-1 | /usr/local/lib/node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js:34
theta-starter-subquery-node-1 | (0, assert_1.default)(this._latestBestHeight, new Error('Latest Best Height is not avaialble'));
theta-starter-subquery-node-1 | ^
theta-starter-subquery-node-1 |
theta-starter-subquery-node-1 | Error: Latest Best Height is not avaialble
theta-starter-subquery-node-1 | at get latestBestHeight [as latestBestHeight] (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js:34:55)
theta-starter-subquery-node-1 | at FetchService.fillNextBlockBuffer (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js:169:75)
theta-starter-subquery-node-1 | at FetchService.startLoop (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js:135:20)
theta-starter-subquery-node-1 | at FetchService.init (/usr/local/lib/node_modules/@subql/node-ethereum/node_modules/@subql/node-core/dist/indexer/fetch.service.js:83:19)
theta-starter-subquery-node-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
theta-starter-subquery-node-1 | at async bootstrap (/usr/local/lib/node_modules/@subql/node-ethereum/dist/init.js:42:9)
theta-starter-subquery-node-1 |
theta-starter-subquery-node-1 | Node.js v18.17.1
dependency failed to start: container theta-starter-subquery-node-1 is unhealthy
error Command failed with exit code 1.
Steps to Reproduce:
- Set up a SubQuery EVM Project.
- Add details from Theta chain and this token to index transfers and approvals.
- Run
yarn dev.
This branch has a project on it already: Theta branch
Suggested Solutions:
Investigate the cause of the 'Latest Best Height is not available' error within the SubQuery SDK.
Update the SDK or the implementation to support Theta's specifics if they differ from Ethereum's.
- Ngôn ngữ chính
- TypeScript
- Star
- 18.7k
- Fork
- 396
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của subquery/subql
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Improve project validation Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Tất cả issue của subquery/subql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
diegosouzapw/OmniRoute#14869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
freeCodeCamp/freeCodeCamp#70412 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
opensearch-project/OpenSearch-Dashboards#12816 ·
Maintainer thường phản hồi trong vòng 1 ngày