{"record":{"id":"b724264525a565ba","repo":"sipeed/picoclaw","slug":"failed-to-load-config-v-b72426","errorCode":null,"errorMessage":"Failed to load config: %v","messagePattern":"Failed to load config: (.+?)","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"web/backend/api/pico.go","lineNumber":203,"sourceCode":"\t\tgateway.mu.Unlock()\n\n\t\tif picoToken == \"\" {\n\t\t\tlogger.Warnf(\"Missing Pico token for media proxy\")\n\t\t\thttp.Error(w, \"Invalid Pico token\", http.StatusForbidden)\n\t\t\treturn\n\t\t}\n\n\t\th.createPicoHTTPProxy(picoToken).ServeHTTP(w, r)\n\t}\n}\n\n// handleGetPicoInfo returns non-secret Pico connection info for the launcher UI.\n//\n//\tGET /api/pico/info\nfunc (h *Handler) handleGetPicoInfo(w http.ResponseWriter, r *http.Request) {\n\tcfg, err := config.LoadConfig(h.configPath)\n\tif err != nil {\n\t\thttp.Error(w, fmt.Sprintf(\"Failed to load config: %v\", err), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\th.writePicoInfoResponse(w, r, cfg, nil)\n}\n\n// handleRegenPicoToken rotates the raw Pico WebSocket token and returns\n// non-secret connection info for the launcher UI.\n//\n//\tPOST /api/pico/token\nfunc (h *Handler) handleRegenPicoToken(w http.ResponseWriter, r *http.Request) {\n\tcfg, err := config.LoadConfig(h.configPath)\n\tif err != nil {\n\t\thttp.Error(w, fmt.Sprintf(\"Failed to load config: %v\", err), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\ttoken := generateSecureToken()","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/web/backend/api/pico.go#L185-L221","documentation":"Error \"Failed to load config: %v\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at web/backend/api/pico.go:203 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":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}