{"record":{"id":"7c56504fdc886181","repo":"fluent/fluentd","slug":"message-at-error-sample","errorCode":null,"errorMessage":"#{message} at #{error_sample}","messagePattern":"#(.+?) at #(.+?)","errorType":"exception","errorClass":"Fluent::ConfigParseError","httpStatus":null,"severity":"error","filePath":"lib/fluent/config/basic_parser.rb","lineNumber":92,"sourceCode":"\n      def check(pattern)\n        @ss.check(pattern)\n      end\n\n      def line_end\n        skip(LINE_END)\n      end\n\n      def spacing\n        skip(SPACING)\n      end\n\n      def spacing_without_comment\n        skip(SPACING_WITHOUT_COMMENT)\n      end\n\n      def parse_error!(message)\n        raise ConfigParseError, \"#{message} at #{error_sample}\"\n      end\n\n      def error_sample\n        pos = @ss.pos\n\n        lines = @ss.string.lines.to_a\n        lines.each_with_index { |line, ln|\n          if line.size >= pos\n            msgs = [\"line #{ln + 1},#{pos}\\n\"]\n\n            if ln > 0\n              last_line = lines[ln - 1]\n              msgs << \"%3s: %s\" % [ln, last_line]\n            end\n\n            msgs << \"%3s: %s\" % [ln + 1, line]\n            msgs << \"\\n     #{'-' * pos}^\\n\"\n","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/config/basic_parser.rb#L74-L110","documentation":"Error \"#{message} at #{error_sample}\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/config/basic_parser.rb:92 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"}