Skip to content

Instantly share code, notes, and snippets.

@bessey
Created July 26, 2018 17:43
Show Gist options
  • Save bessey/9ea70d8a9127c28adf680524c4ec28ef to your computer and use it in GitHub Desktop.
Save bessey/9ea70d8a9127c28adf680524c4ec28ef to your computer and use it in GitHub Desktop.
Duplicate type definition found for name 'Account' at 'Field LocalChain.account's return type' (Types::AccountType, Types::AccountType)
RuntimeError: Duplicate type definition found for name 'Account' at 'Field LocalChain.account's return type' (Types::AccountType, Types::AccountType)
from graphql/schema/traversal.rb:168:in `visit'
from graphql/schema/traversal.rb:205:in `visit_field_on_type'
from graphql/schema/traversal.rb:185:in `block in visit_fields'
from graphql/schema/traversal.rb:184:in `each'
from graphql/schema/traversal.rb:184:in `visit_fields'
from graphql/schema/traversal.rb:143:in `visit'
from graphql/schema/traversal.rb:205:in `visit_field_on_type'
from graphql/schema/traversal.rb:185:in `block in visit_fields'
from graphql/schema/traversal.rb:184:in `each'
from graphql/schema/traversal.rb:184:in `visit_fields'
from graphql/schema/traversal.rb:143:in `visit'
from graphql/schema/traversal.rb:205:in `visit_field_on_type'
from graphql/schema/traversal.rb:185:in `block in visit_fields'
from graphql/schema/traversal.rb:184:in `each'
from graphql/schema/traversal.rb:184:in `visit_fields'
from graphql/schema/traversal.rb:143:in `visit'
from graphql/schema/traversal.rb:124:in `block in visit'
from graphql/schema/traversal.rb:124:in `each'
from graphql/schema/traversal.rb:124:in `visit'
from graphql/schema/traversal.rb:43:in `initialize'
from graphql/schema.rb:1036:in `new'
from graphql/schema.rb:1036:in `rebuild_artifacts'
from graphql/schema.rb:271:in `types'
from graphql/schema/possible_types.rb:16:in `initialize'
from graphql/schema.rb:181:in `new'
from graphql/schema.rb:181:in `initialize_copy'
from graphql/define/instance_definable.rb:129:in `initialize_dup'
from graphql/define/instance_definable.rb:129:in `dup'
from graphql/define/instance_definable.rb:129:in `redefine'
from graphql/schema.rb:729:in `to_graphql'
from graphql/schema/member/accepts_definition.rb:120:in `to_graphql'
from graphql/schema.rb:677:in `graphql_definition'
from /home/usr.local/ruby251/lib/ruby/2.5.0/forwardable.rb:223:in `multiplex'
from app/controllers/api/queries_controller.rb:19:in `create'
from action_controller/metal/implicit_render.rb:4:in `send_action'
from abstract_controller/base.rb:198:in `process_action'
from action_controller/metal/rendering.rb:10:in `process_action'
from abstract_controller/callbacks.rb:20:in `block in process_action'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:498:in `block (2 levels) in around'
from active_support/callbacks.rb:313:in `block (2 levels) in halting'
from raven/integrations/rails/controller_transaction.rb:7:in `block in included'
from active_support/callbacks.rb:441:in `instance_exec'
from active_support/callbacks.rb:441:in `block in make_lambda'
from active_support/callbacks.rb:312:in `block in halting'
from active_support/callbacks.rb:497:in `block in around'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:778:in `_run_process_action_callbacks'
from active_support/callbacks.rb:81:in `run_callbacks'
from abstract_controller/callbacks.rb:19:in `process_action'
from action_controller/metal/rescue.rb:29:in `process_action'
from action_controller/metal/instrumentation.rb:32:in `block in process_action'
from active_support/notifications.rb:164:in `block in instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `instrument'
from action_controller/metal/instrumentation.rb:30:in `process_action'
from ddtrace/contrib/rails/core_extensions.rb:179:in `process_action_with_datadog'
from action_controller/metal/params_wrapper.rb:250:in `process_action'
from active_record/railties/controller_runtime.rb:18:in `process_action'
from abstract_controller/base.rb:137:in `process'
from action_view/rendering.rb:30:in `process'
from action_controller/metal.rb:196:in `dispatch'
from action_controller/metal/rack_delegation.rb:13:in `dispatch'
from action_controller/metal.rb:237:in `block in action'
from action_dispatch/routing/route_set.rb:74:in `dispatch'
from action_dispatch/routing/route_set.rb:43:in `serve'
from action_dispatch/journey/router.rb:43:in `block in serve'
from action_dispatch/journey/router.rb:30:in `each'
from action_dispatch/journey/router.rb:30:in `serve'
from action_dispatch/routing/route_set.rb:817:in `call'
from dragonfly/middleware.rb:14:in `call'
from dog_feeder/rack/dog_feeder_middleware.rb:10:in `call'
from flipper/middleware/memoizer.rb:62:in `memoized_call'
from flipper/middleware/memoizer.rb:41:in `call'
from flipper/middleware/setup_env.rb:35:in `call'
from warden/manager.rb:36:in `block in call'
from warden/manager.rb:35:in `catch'
from warden/manager.rb:35:in `call'
from rack/etag.rb:24:in `call'
from rack/conditionalget.rb:38:in `call'
from rack/head.rb:13:in `call'
from action_dispatch/middleware/params_parser.rb:27:in `call'
from action_dispatch/middleware/flash.rb:260:in `call'
from rack/session/abstract/id.rb:225:in `context'
from rack/session/abstract/id.rb:220:in `call'
from action_dispatch/middleware/cookies.rb:560:in `call'
from active_record/query_cache.rb:36:in `call'
from active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
from action_dispatch/middleware/callbacks.rb:29:in `block in call'
from active_support/callbacks.rb:88:in `__run_callbacks__'
from active_support/callbacks.rb:778:in `_run_call_callbacks'
from active_support/callbacks.rb:81:in `run_callbacks'
from action_dispatch/middleware/callbacks.rb:27:in `call'
from action_dispatch/middleware/remote_ip.rb:78:in `call'
from action_dispatch/middleware/debug_exceptions.rb:17:in `call'
from ddtrace/contrib/rails/middlewares.rb:16:in `call'
from action_dispatch/middleware/show_exceptions.rb:30:in `call'
from lograge/rails_ext/rack/logger.rb:15:in `call_app'
from rails/rack/logger.rb:20:in `block in call'
from active_support/tagged_logging.rb:68:in `block in tagged'
from active_support/tagged_logging.rb:26:in `tagged'
from active_support/tagged_logging.rb:68:in `tagged'
from rails/rack/logger.rb:20:in `call'
from request_store/middleware.rb:19:in `call'
from action_dispatch/middleware/request_id.rb:21:in `call'
from rack/methodoverride.rb:22:in `call'
from rack/runtime.rb:18:in `call'
from active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
from rack/cache/context.rb:140:in `forward'
from rack/cache/context.rb:147:in `pass'
from rack/cache/context.rb:159:in `invalidate'
from rack/cache/context.rb:74:in `call!'
from rack/cache/context.rb:51:in `call'
from dragonfly/cookie_monster.rb:9:in `call'
from rack/sendfile.rb:113:in `call'
from ddtrace/contrib/rack/middlewares.rb:45:in `call'
from raven/integrations/rack.rb:51:in `call'
from rails/engine.rb:518:in `call'
from rails/application.rb:165:in `call'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/out_of_band_gc.rb:32:in `call'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:81:in `block in process_request'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/active_support_tagged_logger_support.rb:15:in `block in maybe_tag_logger'
from active_support/tagged_logging.rb:68:in `block in tagged'
from active_support/tagged_logging.rb:26:in `tagged'
from active_support/tagged_logging.rb:68:in `tagged'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/active_support_tagged_logger_support.rb:15:in `maybe_tag_logger'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:81:in `process_request'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in `accept_and_process_next_request'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:95:in `main_loop'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:439:in `block (3 levels) in start_threads'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:97:in `block in create_thread_and_abort_on_exception'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment