Skip to content

SSL self signed cert failure #453

@tonydavis629

Description

@tonydavis629

Describe the bug
After an update approximately 2 weeks ago, I can't access continue server from a corporate network. I have the correct certs on my machine, I only need to know how to allow continue to use them.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to continue through a corporate network with SSL

Environment

  • Operating System: Mac OS
  • Python Version: 3.11.4
  • Continue Version: [e.g. v0.0.207]

Logs

[2023-09-05 14:08:46,045] [ERROR] Error while running step: 
Traceback (most recent call last):

  File "aiohttp/connector.py", line 980, in _wrap_create_connection

  File "asyncio/base_events.py", line 1112, in create_connection

  File "asyncio/base_events.py", line 1145, in _create_connection_transport

  File "asyncio/futures.py", line 287, in __await__

  File "asyncio/tasks.py", line 339, in __wakeup

  File "asyncio/futures.py", line 203, in result

  File "asyncio/sslproto.py", line 575, in _on_handshake_complete

  File "asyncio/sslproto.py", line 557, in _do_handshake

  File "ssl.py", line 979, in do_handshake

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1002)


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "continuedev/src/continuedev/libs/util/create_async_task.py", line 21, in callback
    future.result()

  File "asyncio/futures.py", line 203, in result

  File "asyncio/tasks.py", line 269, in __step

  File "continuedev/src/continuedev/core/autopilot.py", line 524, in create_title
    title = await self.continue_sdk.models.medium.complete(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "continuedev/src/continuedev/libs/llm/__init__.py", line 209, in complete
    completion = await self._complete(prompt=prompt, options=options)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "continuedev/src/continuedev/libs/llm/maybe_proxy_openai.py", line 34, in _complete
    return await self.llm._complete(prompt, options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "continuedev/src/continuedev/libs/llm/proxy_server.py", line 53, in _complete
    async with self._client_session.post(

  File "aiohttp/client.py", line 1141, in __aenter__

  File "aiohttp/client.py", line 536, in _request

  File "aiohttp/connector.py", line 540, in connect

  File "aiohttp/connector.py", line 901, in _create_connection

  File "aiohttp/connector.py", line 1209, in _create_direct_connection

  File "aiohttp/connector.py", line 1178, in _create_direct_connection

  File "aiohttp/connector.py", line 982, in _wrap_create_connection

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host proxy-server-l6vsfbzhba-uw.a.run.app:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1002)')]

To get the Continue server logs:

  1. cmd+shift+p (MacOS) / ctrl+shift+p (Windows)
  2. Search for and then select "Continue: View Continue Server Logs"
  3. Scroll to the bottom of continue.log and copy the last 100 lines or so

To get the VS Code console logs:

  1. cmd+shift+p (MacOS) / ctrl+shift+p (Windows)
  2. Search for and then select "Developer: Toggle Developer Tools"
  3. Select Console
  4. Read the console logs

If the problem is related to LLM prompting:

  1. Hover the problematic response in the Continue UI
  2. Click the "magnifying glass" icon
  3. Copy the contents of the continue_logs.txt file that opens

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions