theforeman/foreman · error · UnknownNetworkType

Cannot resolve network type for %s

Error message

Cannot resolve network type for %s

What it means

Error "Cannot resolve network type for %s" thrown in theforeman/foreman.

Source

Thrown at app/graphql/types/networks/union.rb:10

module Types
  module Networks
    class Union < Types::BaseUnion
      description 'Networks that are defined for a compute resource'
      possible_types Vmware

      def self.resolve_type(object, context)
        return Vmware if object.is_a?(Fog::Vsphere::Compute::Network)

        raise UnknownNetworkType.new(N_('Cannot resolve network type for %s'), object.class)
      end

      class UnknownNetworkType < ::Foreman::Exception; end
    end
  end
end

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/graphql/types/networks/union.rb:10 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23). Data as JSON: /api/errors/a8d7d7b2117c7bd6. Report an issue: GitHub.