Skip to content

Uncaught SSLError in ssl.py line 707 #5148

@laden760502-design

Description

@laden760502-design

Aider version: 0.86.2
Python version: 3.12.13
Platform: Windows-11-10.0.26100-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 11 (64bit)
Git version: git version 2.54.0.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 5, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 1162, in main
    coder.run()
  File "base_coder.py", line 887, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 934, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1451, in send_message
    litellm_ex = LiteLLMExceptions()
                 ^^^^^^^^^^^^^^^^^^^
  File "exceptions.py", line 60, in __init__
    self._load()
  File "exceptions.py", line 63, in _load
    import litellm
  File "__init__.py", line 1205, in <module>
    from .fine_tuning.main import *
  File "main.py", line 33, in <module>
    vertex_fine_tuning_apis_instance = VertexFineTuningAPI()
                                       ^^^^^^^^^^^^^^^^^^^^^
  File "handler.py", line 33, in __init__
    self.async_handler = get_async_httpx_client(
                         ^^^^^^^^^^^^^^^^^^^^^^^
  File "http_handler.py", line 1223, in get_async_httpx_client
    _new_client = AsyncHTTPHandler(**handler_params)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "http_handler.py", line 354, in __init__
    self.client = self.create_client(
                  ^^^^^^^^^^^^^^^^^^^
  File "http_handler.py", line 370, in create_client
    ssl_config = get_ssl_configuration(ssl_verify)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "http_handler.py", line 262, in get_ssl_configuration
    _ssl_context_cache[cache_key] = _create_ssl_context(
                                    ^^^^^^^^^^^^^^^^^^^^
  File "http_handler.py", line 130, in _create_ssl_context
    custom_ssl_context = ssl.create_default_context(cafile=cafile)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ssl.py", line 707, in create_default_context
    context.load_verify_locations(cafile, capath, cadata)
ssl.SSLError: [X509] PEM lib (_ssl.c:4106)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions