mongodb / chatbot

MongoDB Chatbot Framework. Powered by MongoDB and Atlas Vector Search.
https://mongodb.github.io/chatbot/
Apache License 2.0
106 stars 48 forks source link

Chatbot stream error: Internal Server Error #425

Closed beakae closed 4 weeks ago

beakae commented 1 month ago

When querying the chatbot with a specific conversation ID, the server returns a 500 error with the message: invalid parameter: expected an object (filter). The error seems to indicate that MongoDB is receiving an invalid filter object, possibly related to conversation IDs.

Error Message: Responding with 500 status and error message: invalid parameter: expected an object (filter).","reqId":"6658d5ec0e5299ff12a98251"}

Steps to reproduce:

  1. Follow Quick Start steps in documentation
  2. OR use the demo website https://cookbook-chat.onrender.com/

issue

jameslimjy commented 1 month ago

im facing this issue too

lukjaki commented 1 month ago

Same for me

nlarew commented 4 weeks ago

Hi everyone, just letting you know that we're investigating what's going on here and hope to have a fix for you soon

nlarew commented 4 weeks ago

A fix for this issue is now live in the latest version of mongodb-chatbot-server:

npm install mongodb-chatbot-server@^0.9.1
JohnGUnderwood commented 3 weeks ago

I still see this issue even after upgrade

{"level":"info","message":"Server listening on port: 3000"}
{"level":"info","message":"Request for: /api/v1/conversations","reqId":"665f7733aef2fbe33385ec27"}
{"level":"info","message":"Request IP ::1 is allowed","reqId":"665f7733aef2fbe33385ec27"}
{"level":"info","message":"Request origin http://localhost:5173/ is allowed","reqId":"665f7733aef2fbe33385ec27"}
{"level":"info","message":"Creating conversation","reqId":"665f7733aef2fbe33385ec27"}
{"level":"info","message":"Responding with conversation 665f7733aef2fbe33385ec28","reqId":"665f7733aef2fbe33385ec27"}
{"level":"info","message":"Request for: /api/v1/conversations/665f7733aef2fbe33385ec28/messages?stream=true","reqId":"665f7734aef2fbe33385ec2a"}
{"level":"info","message":"Request IP ::1 is allowed","reqId":"665f7734aef2fbe33385ec2a"}
{"level":"info","message":"Request origin http://localhost:5173/ is allowed","reqId":"665f7734aef2fbe33385ec2a"}
{"level":"info","message":"Request info:\nUser message: Why should I use the MongoDB Chatbot Framework?\nStream: true\nIP: ::1\nConversationId: 665f7733aef2fbe33385ec28","reqId":"665f7734aef2fbe33385ec2a"}
{"level":"error","message":"Responding with 500 status and error message: invalid parameter: expected an object (filter).","reqId":"665f7734aef2fbe33385ec2a"}
beakae commented 3 weeks ago

Also still somewhat running into issues. The only version I had working was encountering the same: Unfortunately, I do not know how to respond to your message. Please try to rephrase your message. Adding more details can help me respond with a relevant answer.

JohnGUnderwood commented 2 weeks ago

npm install --force in the examples/quick-start directory seems to have fixed my issue.