{"record":{"id":"a1438453068a7515","repo":"googleapis/mcp-toolbox","slug":"no-connections-found","errorCode":null,"errorMessage":"no connections found","messagePattern":"no connections found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/tools/looker/lookerhealthpulse/lookerhealthpulse.go","lineNumber":233,"sourceCode":"\t\t\"looker__internal__analytics__replica\": {},\n\t\t\"looker__internal__analytics\":          {},\n\t\t\"looker\":                               {},\n\t\t\"looker__ilooker\":                      {},\n\t}\n\n\tconnections, err := t.SdkClient.AllConnections(\"\", source.LookerApiSettings())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error fetching connections: %w\", err)\n\t}\n\n\tvar filteredConnections []v4.DBConnection\n\tfor _, c := range connections {\n\t\tif _, reserved := reservedNames[*c.Name]; !reserved {\n\t\t\tfilteredConnections = append(filteredConnections, c)\n\t\t}\n\t}\n\tif len(filteredConnections) == 0 {\n\t\treturn nil, fmt.Errorf(\"no connections found\")\n\t}\n\n\tvar results []map[string]interface{}\n\tfor _, conn := range filteredConnections {\n\t\tvar errors []string\n\t\t// Test connection (simulate test_connection endpoint)\n\t\tresp, err := t.SdkClient.TestConnection(*conn.Name, nil, source.LookerApiSettings())\n\t\tif err != nil {\n\t\t\terrors = append(errors, \"API JSONDecode Error\")\n\t\t} else {\n\t\t\tfor _, r := range resp {\n\t\t\t\tif *r.Status == \"error\" {\n\t\t\t\t\terrors = append(errors, *r.Message)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Run inline query for connection activity","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/looker/lookerhealthpulse/lookerhealthpulse.go#L215-L251","documentation":"After filtering out Looker's reserved/system connection names (looker, looker__ilooker, etc.), this error is returned when zero user-defined database connections remain. The library throws it because the pulse tool's per-connection health checks have nothing to test. It indicates the Looker instance has no non-reserved connections configured, not an API failure.","triggerScenarios":"AllConnections succeeds but every returned connection name matches the reservedNames set, or the instance genuinely has no connections, so len(filteredConnections) == 0.","commonSituations":"Freshly provisioned Looker instance with no database connections yet; all connections deleted; instance where only the built-in looker__ilooker system connection exists; user expected the pulse to cover system connections but they are excluded by design.","solutions":["Create and test at least one non-reserved database connection in Looker (Admin > Connections) before running the health pulse","Check Admin > Connections in the Looker UI to confirm connections exist and are not all system/reserved ones","If you expected existing connections to appear, verify the API user has permission to see all connections (restricted connections are still listed, but verify no naming collisions with reserved names)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"conns, err := sdkClient.AllConnections(\"\", settings)\nif err != nil { return err }\nuser := 0\nfor _, c := range conns {\n\tif !reservedNames[*c.Name] { user++ }\n}\nif user == 0 {\n\treturn errors.New(\"no user-defined Looker connections configured\")\n}","typeGuard":null,"tryCatchPattern":"if _, err := pulseTool.Invoke(ctx, src, params, token); err != nil && strings.Contains(err.Error(), \"no connections found\") {\n\tlog.Println(\"configure at least one non-reserved connection in Looker Admin > Connections\")\n}","preventionTips":["Create and test database connections in Looker before enabling health pulse","Remember reserved names (looker, looker__ilooker) are always excluded from the pulse","Check connection count via the Looker admin UI before scheduling pulse runs"],"tags":["looker","configuration","empty-result"],"backgroundTag":"no-resources-configured","analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}