Having trouble using Verba - Chat Functionality with OpenAI stuck on generating answer


Deployed verba in local - using WCS cloud, openai, cohere. Uploaded a PDF and was able to see it chunk the text and store. When using chat at first the socket will disconnect causing an error, than second time looks like it goes through but stuck on generating answer. Is this a openai connection issue?

I dont have env variables for github token, or unstructured API key, all the others are populated.

Server Setup Information

  • Weaviate Server Version:
  • Deployment Method: WCS
  • Multi Node? Number of Running Nodes:
  • Client Language and Version:
  • Multitenancy?:

Any additional Information

Here are screenshots

1st screenshot is my API key env variables set

2nd screenshot are my documents uploaded

3rd screenshot is the first time running a prompt - error message

4th code - error message in the CLI

INFO: - "POST /api/get_document HTTP/1.1" 200 OK
✘ WebSocket Error: Error communicating with OpenAI
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)
  File "uvloop/loop.pyx", line 2084, in create_connection
  File "uvloop/loop.pyx", line 2079, in uvloop.loop.Loop.create_connection
  File "uvloop/sslproto.pyx", line 517, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 499, in uvloop.loop.SSLProtocol._do_handshake
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 917, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

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

Last screenshot is the 2nd time running prompt and being stuck


Where are you running Verba? Is it by any chance on docker for windows?


Locally (Mac OS) in a virtual environment

That’s weird.

Considering the error message, it seems a connection error with OpenAI

Are you under some sort of proxy?