Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Integration with Theta Network Fails Due to 'Latest Best Height is not available' Error

Đang mở
#2,002 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của subquery/subql

Tất cả issue của subquery/subql

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.