continue icon indicating copy to clipboard operation
continue copied to clipboard

Error: my gpt-5 - Unknown error

Open Romyz123 opened this issue 9 months ago • 4 comments

Error Details

Model: my gpt-5 Provider: openai Status Code: N/A

Error Output

request to https://api.openai.com/v1/responses failed, reason: unable to get local issuer certificate

Additional Context Please add any additional context about the error here

Romyz123 avatar Feb 07 '26 09:02 Romyz123

Related issues with the same "unable to get local issuer certificate" SSL error:

  • #3734 - Remote SSH - "FetchError" - unable to get local issuer certificate
  • #9990 - Error: AWS Bedrock - Claude 4.5 Sonnet - Unknown error (same certificate error)
  • #9175 - Improve SSL certificate error documentation and troubleshooting

continue avatar Feb 07 '26 09:02 continue

Error handling model response There was an error handling the response from my gemini 2.5.

Please try to submit your message again, and if the error persists, let us know by reporting the issue using the buttons below.

Romyz123 avatar Feb 07 '26 09:02 Romyz123

{"error":{"message":"{\n "error": {\n "code": 400,\n "message": "API key not valid. Please pass a valid API key.",\n "status": "INVALID_ARGUMENT",\n "details": [\n {\n "@type": "type.googleapis.com/google.rpc.ErrorInfo",\n "reason": "API_KEY_INVALID",\n "domain": "googleapis.com",\n "metadata": {\n "service": "generativelanguage.googleapis.com"\n }\n },\n {\n "@type": "type.googleapis.com/google.rpc.LocalizedMessage",\n "locale": "en-US",\n "message": "API key not valid. Please pass a valid API key."\n }\n ]\n }\n}\n","code":400,"status":"Bad Request"}}

Romyz123 avatar Feb 07 '26 09:02 Romyz123

This certificate error is typically caused by a corporate proxy/firewall intercepting TLS traffic with a custom CA that Node.js doesn't trust by default.

The fix is to configure requestOptions.caBundlePath pointing to your corporate/internal CA PEM file:

YAML config (config.yaml):

requestOptions:
  caBundlePath: /path/to/your/ca-bundle.pem

JSON config (config.json):

{
  "requestOptions": {
    "caBundlePath": "/path/to/your/ca-bundle.pem"
  }
}

You can also set the NODE_EXTRA_CA_CERTS environment variable to your CA bundle path.

To find your corporate CA certificate, try: openssl s_client -connect api.openai.com:443 -showcerts < /dev/null 2>/dev/null — look for certificates beyond the server's own cert in the chain.

Full docs: https://docs.continue.dev/troubleshooting#ssl-certificate-errors and https://docs.continue.dev/faqs#configure-certificates

Closing as this is resolved via configuration. Please reopen if you're still experiencing issues after configuring caBundlePath.

RomneyDa avatar Mar 25 '26 03:03 RomneyDa