I tried using the API in Cursor, but it failed and returned a request timeout error

  1. After filled the API, It returned “Invalid openAI API Key”

  2. I debugged according to the returned prompt, but it shows 'failed to connect with API.openAI.

  3. Tried ping the connection, it returned a request timeout.

How can i fix this? thx

Local firewall? Got hit by that a couple of times, especially with ide plugins blocked by the antivirus.

Thanks, not sure about it, I decided to give up using my OpenAI API and just subscribed to Cursor.

1 Like