Errors not populating correctly
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia tracciando il modo in cui gli errori della risposta vengono normalizzati in GraphQL::Client::Errors, quindi esamina il controllo dell’AST per verificare gli errori menzionati nel report. Riproduci la risposta mostrata nell’issue e verifica che l’errore GraphQL restituito popoli l’oggetto errors invece di lasciare vuoti i relativi messages e details.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Given this response
#<GraphQL::Client::Response:0x000071fb2142c000
@data=#<#<Module:0x000071fb20ea5820>::Mutation addUser=nil>,
@errors=#<GraphQL::Client::Errors @messages={} @details={}>,
@extensions=nil,
@full_response=
{"connection" => ["close"],
"server" => ["TwistedWeb/24.3.0"],
"date" => ["Wed, 18 Jun 2025 12:45:29 GMT"],
"content-type" => ["application/json"],
"content-length" => ["338"]},
@original_hash=
{"data" => {"addUser" => nil},
"errors" =>
[{"message" => "The provided field is not unique and already exists in GUS.",
"locations" => [{"line" => 2, "column" => 3}],
"path" => ["addUser"],
"errorType" => "FieldExistsError",
"data" => nil,
"errorInfo" => {"errorType" => "FieldExistsError", "field" => "userPrincipalName", "value" => "[email protected]"}}]}>
The errors object is empty even though there is an error returned. I tried stepping through I was able to get the errors object after being normalized which yielded
{"message" => "The provided field is not unique and already exists in GUS.",
"locations" => [{"line" => 2, "column" => 3}],
"path" => ["addUser"],
"errorType" => "FieldExistsError",
"data" => nil,
"errorInfo" => {"errorType" => "FieldExistsError", "field" => "userPrincipalName", "value" => "[email protected]"},
"normalizedPath" => ["data", "addUser"]}
I'm assuming it's part of the AST check for errors but I don't really get how it works or what's missing
- Lingua principale
- Ruby
- Stelle
- 78
- Fork
- 228
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github-community-projects/graphql-client
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
github-community-projects/graphql-client#78 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
github-community-projects/graphql-client#77 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
github-community-projects/graphql-client#76 · 4 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
github-community-projects/graphql-client#67 · 2 commenti ·
-
InvalidNullError not showing up in GraphQL::Client::Response errors since Graphql-ruby 2.4.11Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
github-community-projects/graphql-client#65 · 1 commento ·
Tutte le issue di github-community-projects/graphql-client
Issue simili
-
security
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
OSCON 2016Apertacontent
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
rubyevents/rubyevents#2148 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
we-promise/sure#3838 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Allow simp/useradd 4.xAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
simp/pupmod-simp-pam#244 ·
I maintainer di solito rispondono entro 7 giorni
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ManageIQ/manageiq-ui-classic#10341 ·
I maintainer di solito rispondono entro 1 giorno