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

**URL:** <https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719>\
**Category:** Support\
**Tags:** developer-experience\
**Created:** [June 16, 2024, 4:14pm UTC](https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719 "2024-06-16T16:14:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamdi\_Hmimy](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/hamdi_hmimy/32/1683_2.png) [@Hamdi\_Hmimy](https://forum.weaviate.io/u/Hamdi_Hmimy)\
**Post date:** [June 16, 2024, 4:14pm UTC](https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719/1 "2024-06-16T16:14:58Z")

</div>

### Description

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

 ![Screen Shot 2024-06-16 at 11.11.22 AM](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/b/b2f302ca666ca96488c70a6ec22893688947182b.jpeg)

2nd screenshot are my documents uploaded

 ![Screen Shot 2024-06-16 at 11.11.30 AM](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/2/23bb4d0053b13db80a25d5bbb33697373aed0c6a.jpeg)

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

 ![Screen Shot 2024-06-16 at 11.11.41 AM](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/0/0ed0a4e2cdab48a27d8ad991d56b7f2be465f493.jpeg)

4th code - error message in the CLI

```auto
INFO: 127.0.0.1:53726 - "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
    self._sslobj.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

 ![Screen Shot 2024-06-16 at 11.11.56 AM](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/e/ee34518656e8600984fc257d1473b105a390435a.jpeg)

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [June 17, 2024, 5:12pm UTC](https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719/2 "2024-06-17T17:12:28Z")

</div>

Hi!

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

Thanks!

---

<div class="post-metadata">

**Author:** ![Hamdi\_Hmimy](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/hamdi_hmimy/32/1683_2.png) [@Hamdi\_Hmimy](https://forum.weaviate.io/u/Hamdi_Hmimy)\
**Post date:** [June 21, 2024, 3:56pm UTC](https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719/3 "2024-06-21T15:56:33Z")

</div>

Locally (Mac OS) in a virtual environment

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [June 21, 2024, 8:11pm UTC](https://forum.weaviate.io/t/having-trouble-using-verba-chat-functionality-with-openai-stuck-on-generating-answer/2719/4 "2024-06-21T20:11:53Z")

</div>

That’s weird.

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

Are you under some sort of proxy?
