arc53 / DocsGPT

Chatbot for documentation, that allows you to chat with your data. Privately deployable, provides AI knowledge sharing and integrates knowledge into your AI workflow
https://app.docsgpt.cloud/
MIT License
14.86k stars 1.57k forks source link

πŸ› Bug Report: Internal server Error while calling answer API #1340

Open mousumi2002 opened 2 days ago

mousumi2002 commented 2 days ago

πŸ“œ Description

On calling the /answer API I get Internal server error. I am using the prod url: https://gptcloud.arc53.com/api/answer

Here is the JSON body I am passing:

{
  "question": "Help me to setup VSCode",
  "history": [],
  "conversation_id": null,
  "prompt_id": "default",
  "chunks": 2,
  "token_limit": 0,
  "api_key": "hidden",
  "isNoneDoc": true
}

Here is the response:

{
    "error": "Internal Server Error",
    "message": "PlanExecutor error during aggregation :: caused by :: \"filter.source_id.$eq\" must be a boolean, objectId, number, string, date, uuid, or null, full error: {'ok': 0.0, 'errmsg': 'PlanExecutor error during aggregation :: caused by :: \"filter.source_id.$eq\" must be a boolean, objectId, number, string, date, uuid, or null', 'code': 8, 'codeName': 'UnknownError', '$clusterTime': {'clusterTime': Timestamp(1729252751, 1), 'signature': {'hash': b\"i\\xa2w\\x95\\x11=\\x82\\x12.C'\\xa3q{\\xa49je\\xeb8\", 'keyId': 7384906587107753985}}, 'operationTime': Timestamp(1729252751, 1)}"
}

πŸ‘Ÿ Reproduction steps

Hit the answer API using Postman or any other client

πŸ‘ Expected behavior

It should generate answer

πŸ‘Ž Actual Behavior with Screenshots

Internal Server Error

πŸ’» Operating system

MacOS

What browsers are you seeing the problem on?

Something else

πŸ€– What development environment are you experiencing this bug on?

Docker

πŸ”’ Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

No response

πŸ“ƒ Provide any additional context for the Bug.

No response

πŸ“– Relevant log output

No response

πŸ‘€ Have you spent some time to check if this bug has been raised before?

πŸ”— Are you willing to submit PR?

None

πŸ§‘β€βš–οΈ Code of Conduct

mousumi2002 commented 2 days ago

@dartpain Could you help me if I am missing out on anything here that will help me call the API properly?

ManishMadan2882 commented 2 days ago

Works on my postman, by the way I generated an api_key to substitute in the request body from https://app.docsgpt.cloud/settings > Chatbots

mousumi2002 commented 2 days ago

@ManishMadan2882 had done the same myself, hid the api key here so that it doesn't get exposed. Will try generating another one and check.

mousumi2002 commented 2 days ago

@ManishMadan2882 still not working for me. Can I share a test api key from my side with you somewhere so you may take a look. I had set all fields as default in the chatbot section of the website.

ManishMadan2882 commented 2 days ago

Hi, you can share on discord.