Absinthe compilation error

Any ideas what might be triggering this?
== Compilation error in file lib/app/schema.ex ==
** (KeyError) key :location not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
(absinthe 1.7.1) lib/absinthe/phase/schema/validation/type_references_exist.ex:142: Absinthe.Phase.Schema.Validation.TypeReferencesExist.error/2
(absinthe 1.7.1) lib/absinthe/phase/schema/validation/type_references_exist.ex:114: Absinthe.Phase.Schema.Validation.TypeReferencesExist.check_or_error/4
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:16: anonymous fn/3 in Absinthe.Blueprint.Transform.prewalk/2
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:117: Absinthe.Blueprint.Transform.walk/4
(elixir 1.14.5) lib/enum.ex:1780: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:147: anonymous fn/4 in Absinthe.Blueprint.Transform.walk_children/5
(elixir 1.14.5) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:122: Absinthe.Blueprint.Transform.walk/4
make: *** [build] Error 1
== Compilation error in file lib/app/schema.ex ==
** (KeyError) key :location not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
(absinthe 1.7.1) lib/absinthe/phase/schema/validation/type_references_exist.ex:142: Absinthe.Phase.Schema.Validation.TypeReferencesExist.error/2
(absinthe 1.7.1) lib/absinthe/phase/schema/validation/type_references_exist.ex:114: Absinthe.Phase.Schema.Validation.TypeReferencesExist.check_or_error/4
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:16: anonymous fn/3 in Absinthe.Blueprint.Transform.prewalk/2
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:117: Absinthe.Blueprint.Transform.walk/4
(elixir 1.14.5) lib/enum.ex:1780: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:147: anonymous fn/4 in Absinthe.Blueprint.Transform.walk_children/5
(elixir 1.14.5) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(absinthe 1.7.1) lib/absinthe/blueprint/transform.ex:122: Absinthe.Blueprint.Transform.walk/4
make: *** [build] Error 1
5 Replies
ZachDaniel
ZachDaniel2y ago
🤔 did this happen after an ash_graphql upgrade?
\ ឵឵឵
\ ឵឵឵OP2y ago
Was on a very recent Git, pulled to check, then rolled back to the latest releases. All of this for ash*. All the same. Happy to try some older versions if you think there might be something there.
ZachDaniel
ZachDaniel2y ago
that seems like a difficult error to hunt down really. The most useful thing to me would be to know which specific version the issue shows up in for the first time.
\ ឵឵឵
\ ឵឵឵OP2y ago
I ended up disabling the Absinthe schema and there were two errors that had been introduced: an incorrect module used for an attribute type and a relationship missing an api declaration.
ZachDaniel
ZachDaniel2y ago
oh interesting So it was not actually an error in the graphql layer thats...frustrating

Did you find this page helpful?