{"record":{"id":"a46da719e04d6609","repo":"fluent/fluentd","slug":"either-of-host-and-network-must-be-specified-f","errorCode":null,"errorMessage":"Either of 'host' and 'network' must be specified for client","messagePattern":"Either of 'host' and 'network' must be specified for client","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_forward.rb","lineNumber":141,"sourceCode":"      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({\n              address: source_addr,\n              shared_key: (client.shared_key || @security.shared_key),\n              users: client.users","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_forward.rb#L123-L159","documentation":"Error \"Either of 'host' and 'network' must be specified for client\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_forward.rb:141 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"}