I keep getting this error when using my own OpenAI API Key. I am not running out of credits. This keeps happening and at random times, which is really annoying.
Steps to Reproduce
Add your own OpenAI API key and try running the Agent with GPT 5.2
Hey, thanks for the report. The “Request failed with status code 400” error with the “invalid_encrypted_content” message is a known issue that happens when using a custom OpenAI API key with GPT-5.2 and other reasoning models.
The screenshot shows a typical problem: the request content can’t be processed by the API due to a conflict between parameters that Cursor sends for reasoning models. This can happen irregularly due to different context parameters or request handling.
Request ID: 9c1b5a69-8378-4637-bf49-1237afb9dbcd
{"error":"ERROR_OPENAI","details":{"title":"Unable to reach the model provider","detail":"We encountered an issue when using your API key: Streaming error\n\nAPI Error:\n\n```\n{\"error\":{\"type\":\"provider\",\"reason\":\"provider_error\",\"message\":\"Provider returned 400\",\"retryable\":false,\"provider\":{\"status\":400,\"body\":\"{\\n \\\"error\\\": {\\n \\\"message\\\": \\\"Item 'fc_02ddc9b6ece5fea70069459eb5643c81968863a4280ff246de' of type 'function_call' was provided without its required 'reasoning' item: 'rs_02ddc9b6ece5fea70069459eae45748196a24fd4d5ad2deb26'.\\\",\\n \\\"type\\\": \\\"invalid_request_error\\\",\\n \\\"param\\\": \\\"input\\\",\\n \\\"code\\\": null\\n }\\n}\"}}}\n```","additionalInfo":{},"buttons":[],"planChoices":[]},"isExpected":true}