I’m taking the course ‘Claude Code: A Highly Agentic Coding Assistant’ and am currently on Lesson 4, ‘Setup & Codebase Understanding’. I’ve installed the RAG Chatbot Codebase from Github and followed all of the instructions. When I start the application and go to my localhost:8000, I can start the application just fine. But when I click on any of the TRY ASKING links such as ‘Outline of a course’, I get this error:
Error: Query failed
The terminal is showing this error:
INFO: 127.0.0.1:57965 - “POST /api/query HTTP/1.1” 500 Internal Server Error
Does anyone know what’s causing this error?
Hi @robertfaidev
Unfortunately I am not able to reproduce your error on my environment – on a Windows laptop (yeah, I know). But I would like to confirm that after successfully completing all steps of the Corse Notes, I was able to start the application with working “TRY ASKING“ links (please, see the attached screenshot)
Without seeing any kind of an application’s log, it’s hard to say what caused the issue. So I can give you only general (maybe boring but often helpful) recommendations:
- review the application’s log,
- double check that you have .env file in your work/root directory with your(!) active ANTHROPIC_API_KEY in it (if you do not have it, you can get it here: Sign In | Claude Developer Platform),
- be sure you successfully installed Python dependencies (uv sync code-line ran smoothly – I had to ran additional piece of code: export PATH=“$HOME/.local/bin:$PATH” (which is not in the Corse Notes) before that line to make it work),
- check whether you can open API Documentation:
http://localhost:8000/docs.
1 Like