{"record":{"id":"08f89f5f6f8a2fd9","repo":"netdata/netdata","slug":"could-not-found-expected","errorCode":null,"errorMessage":"could not found expected ':'","messagePattern":"could not found expected ':'","errorType":"exception","errorClass":"ScannerError","httpStatus":null,"severity":"error","filePath":"src/collectors/python.d.plugin/python_modules/pyyaml3/scanner.py","lineNumber":289,"sourceCode":"        for level in self.possible_simple_keys:\n            key = self.possible_simple_keys[level]\n            if min_token_number is None or key.token_number < min_token_number:\n                min_token_number = key.token_number\n        return min_token_number\n\n    def stale_possible_simple_keys(self):\n        # Remove entries that are no longer possible simple keys. According to\n        # the YAML specification, simple keys\n        # - should be limited to a single line,\n        # - should be no longer than 1024 characters.\n        # Disabling this procedure will allow simple keys of any length and\n        # height (may cause problems if indentation is broken though).\n        for level in list(self.possible_simple_keys):\n            key = self.possible_simple_keys[level]\n            if key.line != self.line  \\\n                    or self.index-key.index > 1024:\n                if key.required:\n                    raise ScannerError(\"while scanning a simple key\", key.mark,\n                            \"could not found expected ':'\", self.get_mark())\n                del self.possible_simple_keys[level]\n\n    def save_possible_simple_key(self):\n        # The next token may start a simple key. We check if it's possible\n        # and save its position. This function is called for\n        #   ALIAS, ANCHOR, TAG, SCALAR(flow), '[', and '{'.\n\n        # Check if a simple key is required at the current position.\n        required = not self.flow_level and self.indent == self.column\n\n        # A simple key is required only if it is the first token in the current\n        # line. Therefore it is always allowed.\n        assert self.allow_simple_key or not required\n\n        # The next token might be a simple key. Let's save it's number and\n        # position.\n        if self.allow_simple_key:","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/netdata/netdata/blob/4864de85e26f6734d92cfc27ccbeff5921f49938/src/collectors/python.d.plugin/python_modules/pyyaml3/scanner.py#L271-L307","documentation":"Error \"could not found expected ':'\" thrown in netdata/netdata.","triggerScenarios":"Thrown at src/collectors/python.d.plugin/python_modules/pyyaml3/scanner.py:289 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The YAML scanner expected a ':' while scanning a mapping key.","Fix the YAML syntax: ensure mapping keys are followed by ':'."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4864de85e26f6734d92cfc27ccbeff5921f49938","analyzedAt":"2026-08-15T09:12:38.226Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}