{"record":{"id":"538d3c3e82b02e78","repo":"projectdiscovery/nuclei","slug":"dialers-not-initialized-for-s-538d3c","errorCode":null,"errorMessage":"dialers not initialized for %s","messagePattern":"dialers not initialized for (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/js/libs/postgres/postgres.go","lineNumber":50,"sourceCode":"// If connection is unsuccessful, it returns false and error.\n// @example\n// ```javascript\n// const postgres = require('nuclei/postgres');\n// const isPostgres = postgres.IsPostgres('acme.com', 5432);\n// ```\nfunc (c *PGClient) IsPostgres(ctx context.Context, host string, port int) (bool, error) {\n\texecutionId := ctx.Value(\"executionId\").(string)\n\t// todo: why this is exposed? Service fingerprint should be automatic\n\treturn memoizedisPostgres(ctx, executionId, host, port)\n}\n\n// @memo\nfunc isPostgres(ctx context.Context, executionId string, host string, port int) (bool, error) {\n\ttimeout := 10 * time.Second\n\n\tdialer := protocolstate.GetDialersWithId(executionId)\n\tif dialer == nil {\n\t\treturn false, fmt.Errorf(\"dialers not initialized for %s\", executionId)\n\t}\n\n\tconn, err := dialer.Fastdialer.Dial(ctx, \"tcp\", fmt.Sprintf(\"%s:%d\", host, port))\n\tif err != nil {\n\t\treturn false, err\n\t}\n\tdefer func() {\n\t\t_ = conn.Close()\n\t}()\n\n\t_ = conn.SetDeadline(time.Now().Add(timeout))\n\n\tplugin := &postgres.POSTGRESPlugin{}\n\tservice, err := plugin.Run(conn, timeout, plugins.Target{Host: host})\n\tif err != nil {\n\t\treturn false, err\n\t}\n\tif service == nil {","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/js/libs/postgres/postgres.go#L32-L68","documentation":"Error \"dialers not initialized for %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/js/libs/postgres/postgres.go:50 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":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}