{"record":{"id":"b64e3a3b72af5eef","repo":"glanceapp/glance","slug":"no-loid-cookie-found","errorCode":null,"errorMessage":"no loid cookie found","messagePattern":"no loid cookie found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/glance/widget-reddit.go","lineNumber":455,"sourceCode":"\tsetBrowserUserAgentHeader(request)\n\n\tresponse, err = redditHTTPClient.Do(request)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdefer response.Body.Close()\n\n\tif response.StatusCode != http.StatusOK {\n\t\treturn \"\", fmt.Errorf(\"unexpected status code %d when submitting challenge solution\", response.StatusCode)\n\t}\n\n\tfor _, cookie := range response.Cookies() {\n\t\tif cookie.Name == \"loid\" {\n\t\t\treturn cookie.Value, nil\n\t\t}\n\t}\n\n\treturn \"\", fmt.Errorf(\"no loid cookie found\")\n}\n","sourceCodeStart":437,"sourceCodeEnd":457,"githubUrl":"https://github.com/glanceapp/glance/blob/91324e8de762702e97b0ac5c8e36271d644d8642/internal/glance/widget-reddit.go#L437-L457","documentation":"Thrown by fetchRedditLoidCookie (internal/glance/widget-reddit.go:455) when the challenge solution was accepted (HTTP 200) but the response's Set-Cookie headers contain no 'loid' cookie. The entire challenge dance exists to obtain the loid cookie used for subsequent Reddit API calls; a 200 without it means Reddit changed which cookie it sets (renamed, moved to a different endpoint, or set only via JS) or the response came from an edge/redirect that did not set it.","triggerScenarios":"Challenge solution accepted but Set-Cookie headers only include reddit_session/other cookies; Reddit renamed or stopped setting 'loid' on this endpoint; an intermediary (proxy with cookie stripping, HTTP/2 edge) removed Set-Cookie from the response.","commonSituations":"Reddit cookie-scheme changes after a Glance release (this error and 120-122 tend to appear together in waves), corporate proxies stripping cookies, Reddit setting loid only on a follow-up request.","solutions":["Update Glance to the latest version where cookie-name changes are patched","Check the widget's cached loid cookie fallback (used when present and <6h old)","Test outside proxies/middleboxes that might strip Set-Cookie headers","Report upstream: capture the Set-Cookie headers Reddit now returns (do not share your own cookie values)"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err != nil && strings.Contains(err.Error(), \"no loid cookie found\") {\n    // challenge solved but cookie scheme changed; fall back to cached cookie or degrade widget\n}","preventionTips":["Persist the last known-good loid cookie","Update Glance when Reddit cookie names change","Alert on this specific message — it means markup matched but reward step failed"],"tags":["reddit","cookies","anti-bot","network"],"backgroundTag":null,"analyzedSha":"91324e8de762702e97b0ac5c8e36271d644d8642","analyzedAt":"2026-08-15T14:12:54.279Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}