-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
exception in chatbot after config the database and LLM with windows
Steps To Reproduce
exception in chatbot after config the database and LLM with windows
Expected Behavior
No response
Current Behavior
2025-Nov-20 20:54:00 (v0.0.0) - ERROR - (client.content.chatbot): Bug detected: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "D:\Code\oracle-ai-optimizer\ai-optimizer-main\src\client\content\chatbot.py", line 167, in
asyncio.run(main())
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self.loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\Code\oracle-ai-optimizer\ai-optimizer-main\src\client\content\chatbot.py", line 160, in main
history = await user_client.get_history()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Code\oracle-ai-optimizer\ai-optimizer-main\src\client\utils\client.py", line 107, in get_history
response_data = response.json()
^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\site-packages\httpx_models.py", line 832, in json
return jsonlib.loads(self.content, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usr\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Version: last
- Python version:3.11.4
- Operating System:windows11
- Browser: both edge and chrome
Additional Information
No response