{"record":{"id":"a1c59e5fc6e33f18","repo":"ruvnet/RuView","slug":"authentication-service-error","errorCode":null,"errorMessage":"Authentication service error","messagePattern":"Authentication service error","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"archive/v1/src/middleware/auth.py","lineNumber":215,"sourceCode":"            \n            return response\n            \n        except AuthenticationError as e:\n            logger.warning(f\"Authentication failed: {e}\")\n            raise HTTPException(\n                status_code=status.HTTP_401_UNAUTHORIZED,\n                detail=str(e),\n                headers={\"WWW-Authenticate\": \"Bearer\"},\n            )\n        except AuthorizationError as e:\n            logger.warning(f\"Authorization failed: {e}\")\n            raise HTTPException(\n                status_code=status.HTTP_403_FORBIDDEN,\n                detail=str(e),\n            )\n        except Exception as e:\n            logger.error(f\"Authentication middleware error: {e}\")\n            raise HTTPException(\n                status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n                detail=\"Authentication service error\",\n            )\n        finally:\n            # Log request processing time\n            processing_time = time.time() - start_time\n            logger.debug(f\"Auth middleware processing time: {processing_time:.3f}s\")\n    \n    def _should_skip_auth(self, request: Request) -> bool:\n        \"\"\"Check if authentication should be skipped for this request.\"\"\"\n        path = request.url.path\n        \n        # Skip authentication for these paths\n        skip_paths = [\n            \"/health\",\n            \"/metrics\",\n            \"/docs\",\n            \"/redoc\",","sourceCodeStart":197,"sourceCodeEnd":233,"githubUrl":"https://github.com/ruvnet/RuView/blob/4685618388a5e49fad5b3005806f3bdd6a7c25c3/archive/v1/src/middleware/auth.py#L197-L233","documentation":"Error \"Authentication service error\" thrown in ruvnet/RuView.","triggerScenarios":"Thrown at archive/v1/src/middleware/auth.py:215 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":"4685618388a5e49fad5b3005806f3bdd6a7c25c3","analyzedAt":"2026-08-16T06:09:40.886Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}