{"record":{"id":"855b42c071dd3709","repo":"BerriAI/litellm","slug":"failed-to-delete-polling-response","errorCode":null,"errorMessage":"Failed to delete polling response","messagePattern":"Failed to delete polling response","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/response_api_endpoints/endpoints.py","lineNumber":836,"sourceCode":"        # Handle polling response deletion\n        if not redis_usage_cache:\n            raise HTTPException(status_code=500, detail=\"Redis cache not configured.\")\n\n        polling_handler: Final = ResponsePollingHandler(redis_cache=redis_usage_cache)\n\n        # Get state to verify access\n        state: Final = await polling_handler.get_state(response_id)\n\n        if not state:\n            raise HTTPException(status_code=404, detail=f\"Polling response {response_id} not found\")\n\n        # Delete from cache\n        success: Final = await polling_handler.delete_polling(response_id)\n\n        if success:\n            return DeleteResponseResult(id=response_id, object=\"response\", deleted=True)\n        else:\n            raise HTTPException(status_code=500, detail=\"Failed to delete polling response\")\n\n    # Normal provider response flow\n    data: Final = await _read_request_body(request=request)\n    data[\"response_id\"] = response_id\n    processor: Final = ProxyBaseLLMRequestProcessing(data=data)\n    try:\n        return await processor.base_process_llm_request(\n            request=request,\n            fastapi_response=fastapi_response,\n            user_api_key_dict=user_api_key_dict,\n            route_type=\"adelete_responses\",\n            proxy_logging_obj=proxy_logging_obj,\n            llm_router=llm_router,\n            general_settings=general_settings,\n            proxy_config=proxy_config,\n            select_data_generator=select_data_generator,\n            model=None,\n            user_model=user_model,","sourceCodeStart":818,"sourceCodeEnd":854,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/response_api_endpoints/endpoints.py#L818-L854","documentation":"Polling deletion failure: the state existed and access was verified, but ResponsePollingHandler.delete_polling returned failure — the Redis delete operation did not succeed (connectivity or key issues); surfaced as an error after the existence checks passed.","triggerScenarios":"Thrown at litellm/proxy/response_api_endpoints/endpoints.py:836 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check Redis connectivity and logs; retry the delete once the cache is reachable."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}