gpt-researcher: Error on query: TypeError: expected string or bytes-like object, got 'NoneType'
Describe the bug Running a query results in
⚠️ Error in reading JSON, attempting to repair JSON
Error using json_repair: the JSON object must be str, bytes or bytearray, not NoneType
in the console and no output in the webUI
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/assafelovic/gpt-researcher.git&&cd gpt-researcherpython -m venv venvsource venv/bin/activatepip install -r requirements.txtexport OPENAI_API_KEY={sk-proj-XXX}export TAVILY_API_KEY={tvly-XXX}uvicorn main:app --reload- ask for a ‘Recipe for delicious cake’ in the webUI, selecting ‘Detailed’ and ‘Informative’ options
Expected behavior A response with research
Screenshots n/a
Desktop (please complete the following information):
- OS: EndevourOS (arch), also reproduced on MacOS without a venv
- Python 3.12.6
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (1 by maintainers)
Full traceback: