{"record":{"id":"d5a0cfe01077c65e","repo":"grafana/loki","slug":"url-parameter-must-have-http-https-scheme","errorCode":null,"errorMessage":"URL parameter must have HTTP/HTTPS scheme","messagePattern":"URL parameter must have HTTP/HTTPS scheme","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"clients/cmd/fluentd/lib/fluent/plugin/out_loki.rb","lineNumber":105,"sourceCode":"\n      desc 'if a record only has 1 key, then just set the log line to the value and discard the key.'\n      config_param :drop_single_key, :bool, default: false\n\n      desc 'whether or not to include the fluentd_thread label when multiple threads are used for flushing'\n      config_param :include_thread_label, :bool, default: true\n\n      config_section :buffer do\n        config_set_default :@type, DEFAULT_BUFFER_TYPE\n        config_set_default :chunk_keys, []\n      end\n\n      # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity\n      def configure(conf)\n        compat_parameters_convert(conf, :buffer)\n        super\n        @uri = URI.parse(\"#{@url}/loki/api/v1/push\")\n        unless @uri.is_a?(URI::HTTP) || @uri.is_a?(URI::HTTPS)\n          raise Fluent::ConfigError, 'URL parameter must have HTTP/HTTPS scheme'\n        end\n\n        @record_accessors = {}\n        conf.elements.select { |element| element.name == 'label' }.each do |element|\n          element.each_pair do |k, v|\n            element.has_key?(k) # rubocop:disable Style/PreferredHashMethods #to suppress unread configuration warning\n            v = k if v.empty?\n            @record_accessors[k] = record_accessor_create(v)\n          end\n        end\n        @remove_keys_accessors = []\n        @remove_keys.each do |key|\n          @remove_keys_accessors.push(record_accessor_create(key))\n        end\n\n        # If configured, load and validate client certificate (and corresponding key)\n        if client_cert_configured?\n          load_client_cert","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/grafana/loki/blob/24cfedd4f67b53367b63e273d64dbfc5ad307535/clients/cmd/fluentd/lib/fluent/plugin/out_loki.rb#L87-L123","documentation":"Error \"URL parameter must have HTTP/HTTPS scheme\" thrown in grafana/loki.","triggerScenarios":"Thrown at clients/cmd/fluentd/lib/fluent/plugin/out_loki.rb:105 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":"24cfedd4f67b53367b63e273d64dbfc5ad307535","analyzedAt":"2026-08-15T20:47:01.143Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}