graphprotocol / graphprotocol/graph-node
Error when querying subgraphs: "panic processing query: called `Option::unwrap()` on a `None` value"
未关闭
还没有人认领这个 Issue。
bug
Stale
- 主要语言
- Rust
- 星标
- 3.2k
- 派生
- 1.1k
- 平均合并
- 4 天 1 小时
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在受影响的子图上重现组合的 __schema 和 _meta 查询,然后将其与分别成功的查询以及正常工作的 Compound 子图进行比较。当组合查询在报告的子图上完成且没有出现 Option::unwrap() panic 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- graphql, rust
- 领域
- api, backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100