bolna-app-1 | future: <Task finished name='Task-33' coro=<write_request_logs() done, defined at /usr/local/lib/python3.10/site-packages/bolna/helpers/utils.py:414> exception=TypeError("object of type 'NoneType' has no len()") created at /usr/local/lib/python3.10/asyncio/tasks.py:337>
bolna-app-1 | source_traceback: Object created at (most recent call last):
bolna-app-1 | File "/usr/local/bin/uvicorn", line 8, in <module>
bolna-app-1 | sys.exit(main())
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
bolna-app-1 | return self.main(*args, **kwargs)
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
bolna-app-1 | rv = self.invoke(ctx)
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
bolna-app-1 | return ctx.invoke(self.callback, **ctx.params)
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
bolna-app-1 | return __callback(*args, **kwargs)
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 410, in main
bolna-app-1 | run(
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/uvicorn/main.py", line 578, in run
bolna-app-1 | server.run()
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
bolna-app-1 | return asyncio.run(self.serve(sockets=sockets))
bolna-app-1 | File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
bolna-app-1 | return loop.run_until_complete(main)
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/bolna/agent_manager/task_manager.py", line 1341, in __first_message
bolna-app-1 | await self._synthesize(create_ws_data_packet(self.kwargs.get('agent_welcome_message', None), meta_info= meta_info))
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/bolna/agent_manager/task_manager.py", line 1172, in _synthesize
bolna-app-1 | self.__convert_to_request_log(message = text, meta_info= meta_info, component="synthesizer", direction="response", model = self.synthesizer_provider, is_cached= True, engine=self.tools['synthesizer'].get_engine())
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/bolna/agent_manager/task_manager.py", line 626, in __convert_to_request_log
bolna-app-1 | asyncio.create_task(write_request_logs(log, self.run_id))
bolna-app-1 | File "/usr/local/lib/python3.10/asyncio/tasks.py", line 337, in create_task
bolna-app-1 | task = loop.create_task(coro)
bolna-app-1 | Traceback (most recent call last):
bolna-app-1 | File "/usr/local/lib/python3.10/site-packages/bolna/helpers/utils.py", line 423, in write_request_logs
bolna-app-1 | component_details = [message['data'], None, None,len(message['data']), message['cached'], None, message['engine']]
bolna-app-1 | TypeError: object of type 'NoneType' has no len()
bolna-app-1 | 2024-05-19 07:00:31.360 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
bolna-app-1 | 2024-05-19 07:00:33.361 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
bolna-app-1 | 2024-05-19 07:00:35.362 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
bolna-app-1 | 2024-05-19 07:00:37.363 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
bolna-app-1 | 2024-05-19 07:00:38.771 INFO {telephony} [_listen] call stopping
bolna-app-1 | 2024-05-19 07:00:39.363 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
bolna-app-1 | 2024-05-19 07:00:39.364 ERROR {deepgram_transcriber} [transcribe] Error in transcribe:
bolna-app-1 | 2024-05-19 07:00:41.362 INFO {task_manager} [__check_for_completion] Last transmitted timestamp is simply 0 and hence continuing
Gracefully stopping... (press Ctrl+C again to force)
@saksham003 can you check if the requests from your laptop are reaching Deepgram servers? Try to eliminate any IP blacklisting etc. that might be happening.
@saksham003 Thanks for the logs. Let me check this - this one seems to be a different issue related to transcriber.
@prateeksachan yes I did pull the latest changes. Here’s the agent config I used -