Skip to content

[BUG] PDF Chatbot backend not responding (messages API returns error / no response) #116

@2405Gaurav

Description

@2405Gaurav

🐛 Bug Description

The PDF Chatbot backend is not responding when asking questions after uploading a PDF.
The UI shows:

“Sorry, I encountered an error processing your request. Please try again.”

This happens repeatedly even for simple questions like “what is this pdf about”.

The network request to the backend /api/pdf-chat/messages fails / does not return a valid response.

📝 Steps to Reproduce

Go to https://edulume.site/pdf-chatbot

Upload any PDF file

Click on Chat with PDF

Ask a question like:

what is this about

what is this pdf about

Observe the response

✅ Expected Behavior

The backend should respond with an AI-generated answer based on the uploaded PDF content.

❌ Actual Behavior

The chatbot returns an error message:

“Sorry, I encountered an error processing your request. Please try again.”

Backend endpoint does not respond properly / fails.

📸 Screenshots

Attached below:

Chat UI showing repeated error responses

Network tab showing request to /api/pdf-chat/messages not responding properly

🖥️ Environment

OS: Windows 11

Browser: Chrome (latest)

Node.js Version: N/A (web app usage)

Python Version: N/A (web app usage)

📋 Console Errors

Network details observed in DevTools:

Endpoint: /api/pdf-chat/messages

Server: Express (Fly.io)

The request fails and chatbot returns error message in UI.

📎 Additional Context

This issue prevents the core PDF chatbot functionality from working (no answers generated).
Looks like the backend might be failing due to missing env variables (API key), CORS/auth, or server-side processing error.

SWOC 2026 Participants: YES i am participating in SWoC'26

Image

Metadata

Metadata

Assignees

Labels

Medium30 PointsSWOCIssue available for contributors participating in Social Winter of Code (SWOC).SWoC26Social Winter of Code 2026bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions