graphprotocol / graphprotocol/graph-node
Non-fatal error not showing in indexing status API
Đang mở
Chưa có ai nhận issue này.
bug
Stale
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 1.1k
- Merge trung bình
- 4 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
This should've been fixed on https://github.com/graphprotocol/graph-node/pull/3350 (@neysofu). But on hosted I'm seeing the following entry in subgraph_error:
id | subgraph_id | message | block_hash | handler | vid | block_range | deterministic | created_at
------------------------------------------------------------------+------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+------------+-------+-------------+---------------+-------------------------------
e3b8d7b092745350b123a0ef8cc2a317b8022d0d7297f06ae402a432c1211023 | QmZM7qcyrBwBAKATQ8fBJe1f3dnh4M76afYM2kFqn8KWJQ | Mapping aborted at ~lib/@graphprotocol/graph-ts/chain/ethereum.ts, line 448, column 6, with message: Call reverted, probably because an `assert` or `require` in the contract failed, consider using `try_feeGrowthGlobal1X128` to handle this in the mapping. wasm backtrace: 0: 0x40d6 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.SmartContract#call 1: 0x410b - <unknown>!src/types/Factory/Pool/Pool#feeGrowthGlobal1X128 2: 0x44d6 - <unknown>!src/mappings/core/handleSwap | \xa27795b7df8341e1b48113b2a866bfcf3d642eaaa9236f7df08dd19991bd90a7 | handleSwap | 52605 | [7729783,) | t | 2023-01-20 03:55:31.289339+00
But the indexing status query:
{
indexingStatuses(subgraphs: ["QmZM7qcyrBwBAKATQ8fBJe1f3dnh4M76afYM2kFqn8KWJQ"]) {
health
nonFatalErrors {
message
}
}
}
returns empty:
{
"data": {
"indexingStatuses": [
{
"health": "unhealthy",
"nonFatalErrors": []
}
]
}
}
Hướng dẫn đóng góp
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.
Hướng nghiên cứu
Đọc pull request #3350 trước, sau đó lần theo truy vấn indexingStatuses và so sánh kết quả nonFatalErrors của nó với mục subgraph_error được hiển thị. Tái hiện truy vấn cho ID subgraph đã cung cấp và xác định nơi lỗi được lưu bị bỏ qua; hoàn thành khi lỗi không nghiêm trọng tương ứng xuất hiện trong nonFatalErrors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- graphql, rust
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100