Skip to content

Instantly share code, notes, and snippets.

@ssomnoremac
Created November 6, 2017 16:43
Show Gist options
  • Save ssomnoremac/688728a4ca9b34e4f6019269ee818257 to your computer and use it in GitHub Desktop.
Save ssomnoremac/688728a4ca9b34e4f6019269ee818257 to your computer and use it in GitHub Desktop.
[info] Sent 200 in 354ms
[debug] INCOMING "doc" on "__absinthe__:control" to Absinthe.Phoenix.Channel
Transport: Phoenix.Transports.WebSocket
Parameters: %{"query" => "subscription { newOpening {\n spots\n \temployerId\n \tsiteId\n }\n}", "variables" => nil}
[debug] ABSINTHE schema=Hyrbak.Schema variables=nil
---
subscription { newOpening {
spots
employerId
siteId
}
}
---
[error] GenServer #PID<0.650.0> terminating
** (CaseClauseError) no case clause matching: {:ok, %Absinthe.Blueprint{adapter: Absinthe.Adapter.LanguageConventions, directives: [], errors: [], flags: %{}, fragments: [], input: %Absinthe.Language.Document{definitions: [%Absinthe.Language.OperationDefinition{directives: [], loc: nil, name: nil, operation: :subscription, selection_set: %Absinthe.Language.SelectionSet{loc: %{end_line: 6, start_line: 1}, selections: [%Absinthe.Language.Field{alias: nil, arguments: [], directives: [], loc: %{start_line: 1}, name: "newOpening", selection_set: %Absinthe.Language.SelectionSet{loc: %{end_line: 5, start_line: 1}, selections: [%Absinthe.Language.Field{alias: nil, arguments:[], directives: [], loc: %{start_line: 2}, name: "spots", selection_set: nil}, %Absinthe.Language.Field{alias: nil, arguments: [], directives: [], loc: %{start_line: 3}, name: "employerId", selection_set: nil}, %Absinthe.Language.Field{alias: nil, arguments: [], directives: [], loc: %{start_line: 4}, name: "siteId", selection_set: nil}]}}]}, variable_definitions: []}], loc: nil}, name: nil, operations: [%Absinthe.Blueprint.Document.Operation{complexity: nil, current: true, directives: [], errors: [], flags: %{}, fragment_uses: [], name: nil, provided_values: %{}, schema_node: %Absinthe.Type.Object{__private__: [], __reference__: %{identifier: :subscription, location:%{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema.ex", line: 130}, module: Hyrbak.Schema}, description: nil, field_imports: [], fields: %{new_opening: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :new_opening, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema.ex", line: 131}, module: Hyrbak.Schema}, args: %{}, complexity: nil, config: #Function<2.52486400/2 in Hyrbak.Schema.__absinthe_type__/1>, default_value: nil, deprecation: nil, description: nil, identifier: :new_opening, middleware: [Absinthe.Middleware.PassParent], name: "new_opening", triggers: [], type: :opening}}, identifier: :subscription, interfaces: [], is_type_of: nil, name: "RootSubscriptionType"}, selections: [%Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil,directives: [], errors: [], flags: %{}, name: "newOpening", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :new_opening, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema.ex", line: 131}, module: Hyrbak.Schema}, args: %{}, complexity: nil, config: #Function<2.52486400/2 in Hyrbak.Schema.__absinthe_type__/1>, default_value: nil, deprecation: nil, description: nil, identifier: :new_opening, middleware: [Absinthe.Middleware.PassParent], name: "new_opening", triggers: [], type: :opening}, selections: [%Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil, directives: [],errors: [], flags: %{}, name: "spots", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :spots, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema/types.ex", line: 302}, module: Hyrbak.Schema.Types}, args: %{}, complexity: nil, config: nil, default_value: nil, deprecation: nil, description: nil, identifier: :spots, middleware: [...], ...}, selections: [], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 2}, type_conditions: []}, %Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil, directives: [], errors: [], flags: %{}, name: "employerId", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :employer_id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema/types.ex", line: 298}, module: Hyrbak.Schema.Types}, args: %{}, complexity: nil, config: nil, default_value: nil, deprecation: nil, description: nil, identifier: :employer_id, ...}, selections: [], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 3}, type_conditions: []}, %Absinthe.Blueprint.Document.Field{alias: nil, argument_data: %{}, arguments: [], complexity: nil, directives: [], errors: [], flags: %{}, name: "siteId", schema_node: %Absinthe.Type.Field{__private__: [], __reference__: %{identifier: :site_id, location: %{file: "/Users/syrup/Workspace/hyr/hyrbak/lib/hyrbak_web/schema/types.ex", line: 297}, module: Hyrbak.Schema.Types}, args: %{}, complexity: nil, config: nil, default_value: nil, deprecation: nil, description: nil, identifier: :site_id, ...}, selections: [], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 4}, type_conditions: []}], source_location: %Absinthe.Blueprint.Document.SourceLocation{column: nil, line: 1}, type_conditions: []}], source_location: nil, type: :subscription, variable_definitions: [], variable_uses: []}], resolution: %Absinthe.Blueprint.Document.Resolution{acc: %{}, context: %{pubsub: Hyrbak.Endpoint}, result: nil, root_value: %{}, validation_errors: []}, result: %{"subscribed" => "__absinthe__:doc:125258374"}, schema: Hyrbak.Schema, types: []}, [Absinthe.Phase.Subscription.Result, Absinthe.Phase.Subscription.SubscribeSelf, Absinthe.Phase.Document.Complexity.Result, Absinthe.Phase.Document.Complexity.Analysis, Absinthe.Phase.Document.Directives, Absinthe.Phase.Document.Arguments.Data, Absinthe.Phase.Document.Validation.Result, Absinthe.Phase.Document.Validation.FieldsOnCorrectType, Absinthe.Phase.Document.Validation.UniqueInputFieldNames, Absinthe.Phase.Document.Validation.UniqueArgumentNames, Absinthe.Phase.Document.Validation.ProvidedNonNullArguments, Absinthe.Phase.Document.Validation.KnownArgumentNames, Absinthe.Phase.Document.Validation.ArgumentsOfCorrectType, Absinthe.Phase.Document.Validation.VariablesAreInputTypes, Absinthe.Phase.Document.Validation.ScalarLeafs, Absinthe.Phase.Validation.KnownDirectives, Absinthe.Phase.Document.Arguments.FlagInvalid, Absinthe.Phase.Document.MissingLiterals, Absinthe.Phase.Document.MissingVariables, Absinthe.Phase.Document.Arguments.Parse, Absinthe.Phase.Document.Arguments.CoerceLists, Absinthe.Phase.Document.Arguments.CoerceEnums, Absinthe.Phase.Validation.KnownTypeNames, Absinthe.Phase.Schema, Absinthe.Phase.Document.Arguments.Normalize, Absinthe.Phase.Document.Validation.ProvidedNonNullVariables, Absinthe.Phase.Document.Variables, Absinthe.Phase.Document.Validation.UniqueVariableNames, Absinthe.Phase.Document.Validation.UniqueOperationNames, Absinthe.Phase.Document.Validation.UniqueFragmentNames, Absinthe.Phase.Document.Validation.NoUnusedVariables, Absinthe.Phase.Document.Validation.NoUndefinedVariables, Absinthe.Phase.Document.Validation.KnownFragmentNames, Absinthe.Phase.Document.Validation.SelectedCurrentOperation, Absinthe.Phase.Document.Validation.LoneAnonymousOperation, Absinthe.Phase.Document.Validation.NoFragmentCycles, Absinthe.Phase.Document.Uses, Absinthe.Phase.Document.CurrentOperation, Absinthe.Phase.Document.Validation.ProvidedAnOperation, Absinthe.Phase.Blueprint, Absinthe.Phase.Parse]}
(absinthe_phoenix) lib/absinthe/phoenix/channel.ex:87: Absinthe.Phoenix.Channel.run/3
(absinthe_phoenix) lib/absinthe/phoenix/channel.ex:55: Absinthe.Phoenix.Channel.handle_in/3
(phoenix) lib/phoenix/channel/server.ex:244: anonymous fn/4 in Phoenix.Channel.Server.handle_info/2
(hyrbak) lib/hyrbak/endpoint.ex:1: Hyrbak.Endpoint.instrument/4
(stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:686: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: %Phoenix.Socket.Message{event: "doc", join_ref: nil, payload: %{"query" => "subscription { newOpening {\n spots\n \temployerId\n \tsiteId\n }\n}", "variables" => nil}, ref: "3", topic: "__absinthe__:control"}
State: %Phoenix.Socket{assigns: %{__absinthe_schema__: Hyrbak.Schema, absinthe: %{opts: [context: %{pubsub: Hyrbak.Endpoint}], schema: Hyrbak.Schema}}, channel: Absinthe.Phoenix.Channel, channel_pid: #PID<0.650.0>, endpoint: Hyrbak.Endpoint, handler: HyrbakWeb.ShiftSocke (truncated)
[info] JOIN "__absinthe__:control" to Absinthe.Phoenix.Channel
Transport: Phoenix.Transports.WebSocket (1.0.0)
Serializer: Phoenix.Transports.WebSocketSerializer
Parameters: %{}
[info] Replied __absinthe__:control :ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment