{"record":{"id":"d421aaab6edfb906","repo":"fluent/fluentd","slug":"both-of-host-and-network-are-specified-for-cli","errorCode":null,"errorMessage":"both of 'host' and 'network' are specified for client","messagePattern":"both of 'host' and 'network' are specified for client","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_forward.rb","lineNumber":138,"sourceCode":"      end\n      @enable_field_injection = @source_address_key || @source_hostname_key\n\n      raise Fluent::ConfigError, \"'tag' parameter must not be empty\" if @tag && @tag.empty?\n      raise Fluent::ConfigError, \"'add_tag_prefix' parameter must not be empty\" if @add_tag_prefix && @add_tag_prefix.empty?\n\n      if @security\n        if @security.user_auth && @security.users.empty?\n          raise Fluent::ConfigError, \"<user> sections required if user_auth enabled\"\n        end\n        if !@security.allow_anonymous_source && @security.clients.empty?\n          raise Fluent::ConfigError, \"<client> sections required if allow_anonymous_source disabled\"\n        end\n\n        @nodes = []\n\n        @security.clients.each do |client|\n          if client.host && client.network\n            raise Fluent::ConfigError, \"both of 'host' and 'network' are specified for client\"\n          end\n          if !client.host && !client.network\n            raise Fluent::ConfigError, \"Either of 'host' and 'network' must be specified for client\"\n          end\n          source = nil\n          if client.host\n            begin\n              source = IPSocket.getaddress(client.host)\n            rescue SocketError\n              raise Fluent::ConfigError, \"host '#{client.host}' cannot be resolved\"\n            end\n          end\n          source_addr = begin\n                          IPAddr.new(source || client.network)\n                        rescue ArgumentError\n                          raise Fluent::ConfigError, \"network '#{client.network}' address format is invalid\"\n                        end\n          @nodes.push({","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_forward.rb#L120-L156","documentation":"Error \"both of 'host' and 'network' are specified for client\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_forward.rb:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}