absinthe icon indicating copy to clipboard operation
absinthe copied to clipboard

blueprint inside telemetry events comes out as Inspect.Error when in IEx

Open MikaAK opened this issue 1 year ago • 4 comments

Environment

  • Elixir version (elixir -v): 1.13.3
  • Absinthe version (mix deps | grep absinthe): 1.7
  • Client Framework and version (Relay, Apollo, etc): GraphiQL Interface

Expected behavior

We get the blueprint struct instead of an Inspect.Error

Actual behavior

Inspect.Error on the blueprint field in the [:execute, :operation, :stop] event when using fragments or subscriptions

Relevant Schema/Middleware Code

In an iex shell when printing it out you get

%Inspect.Error{
    message: "got MatchError with message \"no match of right hand side value: %Absinthe.Blueprint{adapter: Absinthe.Adapter.LanguageConventions, directives: [], errors: [], execution: %Absinthe.Blueprint.Execution{...}...
  },

MikaAK avatar Aug 12 '22 16:08 MikaAK

I could not reproduce this. Do you have a step by step guide on getting this error?

maartenvanvliet avatar Aug 26 '22 17:08 maartenvanvliet

This is likely related to another bug but we will need to see a more concrete schema example that reproduces this to narrow it down a bit more

kdawgwilk avatar Aug 29 '22 15:08 kdawgwilk

I can send a example schema since it happens on any request in our app, just OOO this week but I'll be back in Monday

MikaAK avatar Aug 30 '22 07:08 MikaAK