Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickstart_client.py not working with the local setup #181

Open
marmikcfc opened this issue May 18, 2024 · 0 comments
Open

quickstart_client.py not working with the local setup #181

marmikcfc opened this issue May 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@marmikcfc
Copy link
Collaborator

Quickstart client doesn't seem to be working with the local setup but works with the hosted API

#quickstart_server.py
2024-05-17 19:37:20.760 INFO {assistant_manager} [run] Done with execution of the agent
INFO:     connection closed
Traceback (most recent call last):
  File "X:\bolna\bolna\input_handlers\default.py", line 67, in _listen
    request = await self.websocket.receive_json()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "X:\bolna\my_env\Lib\site-packages\starlette\websockets.py", line 133, in receive_json
    self._raise_on_disconnect(message)
  File "X:\bolna\my_env\Lib\site-packages\starlette\websockets.py", line 105, in _raise_on_disconnect
    raise WebSocketDisconnect(message["code"], message.get("reason"))
starlette.websockets.WebSocketDisconnect: (1000, None)
2024-05-17 19:37:20.775 INFO {default} [_listen] Error while handling websocket message: (1000, None)
2024-05-17 19:37:20.775 INFO {deepgram_transcriber} [_check_and_process_end_of_stream] First closing transcription websocket
2024-05-17 19:37:20.776 ERROR {base_transcriber} [_close] Error while closing transcriber stream received 1000 (OK); then sent 1000 (OK)
2024-05-17 19:37:20.776 INFO {deepgram_transcriber} [_check_and_process_end_of_stream] Closed transcription websocket and now closing transcription task
2024-05-17 19:37:21.659 ERROR {deepgram_transcriber} [send_heartbeat] Error while sending: received 1000 (OK); then sent 1000 (OK)
2024-05-17 19:37:31.150 INFO {task_manager} [__handle_initial_silence] Woke up from my slumber True, [{'role': 'system', 'content': 'Ask if they are coming for party tonight'}], [{'role': 'system', 'content': 'Ask if they are coming for party tonight'}]


#quickstart_client.py 
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
ERROR:root:received 1000 (OK); then sent 1000 (OK)
Traceback (most recent call last):
  File "x:\bolna\local_setup\quickstart_client.py", line 176, in <module>
    asyncio.run(main())
  File "C:\Python\Python312\Lib\asyncio\runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Python\Python312\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "x:\bolna\local_setup\quickstart_client.py", line 172, in main
    await asyncio.gather(*tasks)
  File "x:\bolna\local_setup\quickstart_client.py", line 80, in emitter
    await self.ensure_open()
  File "X:\bolna\my_env\Lib\site-packages\websockets\legacy\protocol.py", line 944, in ensure_open 
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)
@prateeksachan prateeksachan added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants