ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.28k stars 748 forks source link

How do you efficiently debug "One of the identified items was in an invalid format" ? #3455

Closed jeancallisti closed 3 years ago

jeancallisti commented 3 years ago

Error "One of the identified items was in an invalid format" seems to be the error I get the most frequently. It's usually caused by me making a mistake in the schema : null field, or wrong type, or whatnot.

Yet sometimes it takes me a tremendous amount of time to find what field is responsible. Worse: Very few people seem to have the same issue as I do -- This error pops up only a handful of times in Google, for obscure, very specific issues that seldom have the same root cause as mine.

Hence my question : Is there a way to display with what field strawberryshake is encountering issues, and why?

michaelstaib commented 3 years ago

With the June release we will have a better error message that exactly tells you what is wrong.

jeancallisti commented 3 years ago

More generally, is there a way to display more info (any info at all) on either end of the flow (encoding on server side or decoding on client side)

michaelstaib commented 3 years ago

Not really, but we will redesign this and will add diagnostic events.

PascalSenn commented 3 years ago

Duplicate of #3111

michaelstaib commented 3 years ago

Closing this since it is a duplicate. We will soon release a preview with a for #3111