{"record":{"id":"31ed28b44cbec1c9","repo":"BerriAI/litellm","slug":"secret-secret-name-not-found-in-google-secret-ma-31ed28","errorCode":null,"errorMessage":"secret {secret_name} not found in Google Secret Manager","messagePattern":"secret (.+?) not found in Google Secret Manager","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/secret_managers/google_secret_manager.py","lineNumber":98,"sourceCode":"            raise ValueError(f\"secret {secret_name} not found in Google Secret Manager. Error: {response.text}\")\n\n        verbose_logger.debug(\n            \"Google Secret Manager retrieval response status code: %s\",\n            response.status_code,\n        )\n\n        # Parse the JSON response and return the secret value\n        secret_data: Final = response.json()\n        _base64_encoded_value: Final = secret_data.get(\"payload\", {}).get(\"data\")\n\n        # decode the base64 encoded value\n        if _base64_encoded_value is not None:\n            _decoded_value: Final = base64.b64decode(_base64_encoded_value).decode(\"utf-8\")\n            self.cache.set_cache(secret_name, _decoded_value)  # Cache the retrieved secret\n            return _decoded_value\n\n        self.cache.set_cache(secret_name, None)  # Cache that the secret was not found\n        raise ValueError(f\"secret {secret_name} not found in Google Secret Manager\")\n","sourceCodeStart":80,"sourceCodeEnd":99,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/secret_managers/google_secret_manager.py#L80-L99","documentation":"Follow-on guard after a successful Google Secret Manager response: the secret payload is absent from the response JSON (no 'payload.data' field), so the named secret exists but has no value to decode.","triggerScenarios":"Thrown at litellm/secret_managers/google_secret_manager.py:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the secret {secret_name} in Google Secret Manager or fix the name being requested.","Verify the project id and IAM permissions for the accessor identity."],"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"}