graphprotocol / graphprotocol/graph-node
[Bug] Failed query is not logged
Offen
Dieses Issue hat noch niemand übernommen.
bug
Stale
- Vorherrschende Sprache
- Rust
- Sterne
- 3.2k
- Forks
- 1.1k
- Ø Merge
- 4 T. 1 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Bug report
For some failed queries, graph-node fails silently, not logging any error.
Ex.:
`http post http://localhost:8080/subgraphs/id/QmQohvyxLZLpwouzPF61kTzmLjgawmt6qDWZrPndz1M9EQ query='query MyQuery { _meta { block { number } } }'`
would return
`{
"errors": [
{
"message": "Store error: database unavailable"
}
]
}
`
but there are no indication of an error related to this query in the graph-node logs, making
the detection of the error very difficult on a sharded production environment.
`graph-node v0.29.0`
Relevant log output
no log output
IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out
- Tick this box if this bug is caused by a regression found in the latest release.
- Tick this box if this bug is specific to the hosted service.
- I have searched the issue tracker to make sure this issue is not a duplicate.
OS information
None
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die fehlgeschlagene _meta-Abfrage gegen graph-node zu reproduzieren und nachzuverfolgen, wie dessen GraphQL-Fehler behandelt und protokolliert werden. Das Issue nennt keine Quelldateien oder Tests; als abgeschlossen gilt, wenn eine fehlgeschlagene Abfrage einen nützlichen Fehlereintrag in den graph-node-Logs erzeugt und weiterhin die gemeldete Antwort zurückgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql, rust
- Bereich
- api, backend, observability
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100