graphprotocol / graphprotocol/graph-node
Error when querying subgraphs: "panic processing query: called `Option::unwrap()` on a `None` value"
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
The following query returns an error on most subgraphs:
Subgraphs that returns an error:
https://thegraph.com/hosted-service/subgraph/aave/protocol-v2
https://thegraph.com/hosted-service/subgraph/ensdomains/ens
https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v2
+++
Query:
{
__schema{
types{
fields{
name
}
}
}
_meta{
deployment
}
}
Error message
"message": "panic processing query: called `Option::unwrap()` on a `None` value"
Exception: The query works on this subgraph:
https://thegraph.com/hosted-service/subgraph/graphprotocol/compound-v2
If I split the query into two separate queries, they work for all tested subgraphs:
{
__schema{
types{
fields{
name
}
}
}
}
{
_meta{
deployment
}
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、影響を受けるサブグラフに対して __schema と _meta を組み合わせたクエリを再現し、その後、個別には成功しているクエリおよび動作している Compound サブグラフと比較します。報告されたサブグラフで、結合したクエリが Option::unwrap() の panic なしに完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, rust
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100